Class: DuplicateSite
- Inherits:
-
SiteSetupBase
- Object
- PageMaker
- BasePage
- SiteSetupBase
- DuplicateSite
- Defined in:
- lib/sakai-cle-test-api/page_objects/site_setup.rb
Overview
The first page of the Duplicate Site pages in the Site Editor.
Instance Method Summary collapse
- #duplicate ⇒ Object
-
#site_name ⇒ Object
Returns the site name in the header, for verification.
Methods inherited from SiteSetupBase
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
#duplicate ⇒ Object
189 190 191 192 193 |
# File 'lib/sakai-cle-test-api/page_objects/site_setup.rb', line 189 def duplicate frm.(:value=>"Duplicate").click frm.span(:class=>"submitnotif").wait_while_present(300) SiteEditor.new(@browser) end |
#site_name ⇒ Object
Returns the site name in the header, for verification.
196 197 198 |
# File 'lib/sakai-cle-test-api/page_objects/site_setup.rb', line 196 def site_name frm.div(:class=>"portletBody").h3.span(:class=>"highlight").text end |