Class: SiteSummaryPage

Inherits:
BasePage
  • Object
show all
Defined in:
lib/sambal-cle/page_objects/public_search.rb

Overview

The page that appears when you click a Site in the Site Search Results page, when not logged in to Sakai.

Instance Method Summary collapse

Methods inherited from BasePage

basic_page_elements, frame_element

Instance Method Details

#return_to_listObject



46
47
48
49
# File 'lib/sambal-cle/page_objects/public_search.rb', line 46

def return_to_list
  @browser.frame(:index=>0).button(:value=>"Return to List").click
  SearchPublicResults.new(@browser)
end

#syllabus_attachmentsObject



51
52
53
54
55
56
57
58
59
# File 'lib/sambal-cle/page_objects/public_search.rb', line 51

def syllabus_attachments
  links = []
  @browser.frame(:id=>"ifrm").links.each do |link|
    if link.href=~/Syllabus/
      links << link.text
    end
  end
  return links
end