Class: AddEditTools
- Defined in:
- lib/sakai-cle-test-api/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
Methods inherited from PageMaker
element, expected_element, expected_title, #initialize, #method_missing, page_url
Constructor Details
This class inherits a constructor from PageMaker
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class PageMaker
Instance Method Details
#new_tool ⇒ Object
Clicks the New Tool link, then instantiates the NewTool class.
165 166 167 168 |
# File 'lib/sakai-cle-test-api/page_objects/sites.rb', line 165 def new_tool frm.link(:text=>"New Tool").click NewTool.new(@browser) end |
#save ⇒ Object
Clicks the Save button, then instantiates the AddEditPages class.
172 173 174 175 |
# File 'lib/sakai-cle-test-api/page_objects/sites.rb', line 172 def save frm.(:value=>"Save").click AddEditPages.new(@browser) end |