Class: SelectMatrixStyle
- Defined in:
- lib/sakai-cle-test-api/page_objects/matrix.rb
Instance Method Summary collapse
-
#go_back ⇒ Object
Clicks the “Go Back” button and instantiates the AddEditMatrix Class.
-
#select_style(stylename) ⇒ Object
Clicks the “Select” link for the specified Style, then instantiates the AddEditMatrix Class.
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_back ⇒ Object
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.(: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 |