Class: AnnouncementsMerge

Inherits:
BasePage show all
Defined in:
lib/sakai-cle-test-api/page_objects/announcements.rb

Overview

Show Announcements from Another Site. On this page you select what announcements you want to merge into the current Site.

Instance Method Summary collapse

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

#check(site_name) ⇒ Object

Checks the checkbox for the specified site name

Parameters:

  • site_name (String)

    the name of the relevant site displayed in the table



76
77
78
# File 'lib/sakai-cle-test-api/page_objects/announcements.rb', line 76

def check(site_name)
  frm.table(:class=>"listHier lines nolines").row(:text=>/#{Regexp.escape(site_name)}/).checkbox(:id=>/site/).set
end