Class: SiteSummaryPage

Inherits:
BasePage show all
Defined in:
lib/sakai-cle-test-api/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

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

#return_to_listObject



46
47
48
49
# File 'lib/sakai-cle-test-api/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/sakai-cle-test-api/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