Class: SearchPublic

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

Overview

The page where you search for public courses and projects.

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

#homeObject



7
8
9
10
# File 'lib/sakai-cle-test-api/page_objects/public_search.rb', line 7

def home
  @browser.frame(:index=>0).link(:text=>"Home").click
  Login.new(@browser)
end

#search_for=(string) ⇒ Object



12
13
14
# File 'lib/sakai-cle-test-api/page_objects/public_search.rb', line 12

def search_for=(string)
  @browser.frame(:index=>0).text_field(:id=>"searchbox").set(Regexp.escape(string))
end

#search_for_sitesObject



16
17
18
19
# File 'lib/sakai-cle-test-api/page_objects/public_search.rb', line 16

def search_for_sites
  @browser.frame(:index=>0).button(:value=>"Search for Sites").click
  SearchPublicResults.new(@browser)
end