Class: Home
- Defined in:
- lib/sambal-cle/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
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/sambal-cle/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 |