Class: DuplicateSite

Inherits:
SiteSetupBase show all
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

Methods inherited from SiteSetupBase

menu_elements

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

#duplicateObject



189
190
191
192
193
# File 'lib/sakai-cle-test-api/page_objects/site_setup.rb', line 189

def duplicate
  frm.button(:value=>"Duplicate").click
  frm.span(:class=>"submitnotif").wait_while_present(300)
  SiteEditor.new(@browser)
end

#site_nameObject

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