Class: Home
- Defined in:
- lib/sakai-cle-test-api/page_objects/home.rb
Overview
Topmost page for a Site in Sakai
Instance Method Summary collapse
-
#announcements_list ⇒ Object
Gets the text of the displayed announcements, for test case verification.
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
#announcements_list ⇒ Object
Gets the text of the displayed announcements, for test case verification
28 29 30 31 32 33 34 |
# File 'lib/sakai-cle-test-api/page_objects/home.rb', line 28 def announcements_list list = [] links = @browser.frame(:index=>2).links links.each { |link| list << link.text } list.delete_if { |item| item=="Options" } # Deletes the Options link if it's there. return list end |