Class: AddEditTools
- Defined in:
- lib/sambal-cle/page_objects/sites.rb
Overview
Page when editing a Site and adding/editing tools for pages.
Instance Method Summary collapse
-
#new_tool ⇒ Object
Clicks the New Tool link, then instantiates the NewTool class.
-
#save ⇒ Object
Clicks the Save button, then instantiates the AddEditPages class.
Methods inherited from BasePage
basic_page_elements, frame_element
Instance Method Details
#new_tool ⇒ Object
Clicks the New Tool link, then instantiates the NewTool class.
155 156 157 158 |
# File 'lib/sambal-cle/page_objects/sites.rb', line 155 def new_tool frm.link(:text=>"New Tool").click NewTool.new(@browser) end |
#save ⇒ Object
Clicks the Save button, then instantiates the AddEditPages class.
162 163 164 165 |
# File 'lib/sambal-cle/page_objects/sites.rb', line 162 def save frm.(:value=>"Save").click AddEditPages.new(@browser) end |