Class: SelectMatrixStyle

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

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

#go_backObject

Clicks the “Go Back” button and instantiates the AddEditMatrix Class.



92
93
94
95
# File 'lib/sakai-cle-test-api/page_objects/matrix.rb', line 92

def go_back
  frm.button(:value=>"Go Back").click
  AddEditMatrix.new(@browser)
end

#select_style(stylename) ⇒ Object

Clicks the “Select” link for the specified Style, then instantiates the AddEditMatrix Class.



99
100
101
102
# File 'lib/sakai-cle-test-api/page_objects/matrix.rb', line 99

def select_style(stylename)
  frm.table(:class=>/listHier lines/).tr(:text=>/#{Regexp.escape(stylename)}/).link(:text=>"Select").click
  AddEditMatrix.new(@browser)
end