Class: AddEditMatrix
- Defined in:
- lib/sakai-cle-test-api/page_objects/matrix.rb
Instance Method Summary collapse
-
#add_column ⇒ Object
Clicks the “Add Column” link and instantiates the AddEditColumn Class.
-
#add_row ⇒ Object
Clicks the “Add Row” link and instantiates the AddEditRow Class.
-
#create_matrix ⇒ Object
Clicks the “Create Matrix” button and instantiates the Matrices Class.
-
#save_changes ⇒ Object
Clicks the “Save Changes” butotn and instantiates the EditMatrixCells Class.
-
#select_style ⇒ Object
Clicks the “Select Style” link and instantiates the SelectMatrixStyle 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
#add_column ⇒ Object
Clicks the “Add Column” link and instantiates the AddEditColumn Class.
68 69 70 71 |
# File 'lib/sakai-cle-test-api/page_objects/matrix.rb', line 68 def add_column frm.link(:text=>"Add Column").click AddEditColumn.new(@browser) end |
#add_row ⇒ Object
Clicks the “Add Row” link and instantiates the AddEditRow Class.
75 76 77 78 |
# File 'lib/sakai-cle-test-api/page_objects/matrix.rb', line 75 def add_row frm.link(:text=>"Add Row").click AddEditRow.new(@browser) end |
#create_matrix ⇒ Object
Clicks the “Create Matrix” button and instantiates the Matrices Class.
47 48 49 50 |
# File 'lib/sakai-cle-test-api/page_objects/matrix.rb', line 47 def create_matrix frm.(:value=>"Create Matrix").click Matrices.new(@browser) end |
#save_changes ⇒ Object
Clicks the “Save Changes” butotn and instantiates the EditMatrixCells Class.
54 55 56 57 |
# File 'lib/sakai-cle-test-api/page_objects/matrix.rb', line 54 def save_changes frm.(:value=>"Save Changes").click EditMatrixCells.new(@browser) end |
#select_style ⇒ Object
Clicks the “Select Style” link and instantiates the SelectMatrixStyle Class.
61 62 63 64 |
# File 'lib/sakai-cle-test-api/page_objects/matrix.rb', line 61 def select_style frm.link(:text=>"Select Style").click SelectMatrixStyle.new(@browser) end |