Class: AddEditMatrix

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

#add_columnObject

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_rowObject

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_matrixObject

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.button(:value=>"Create Matrix").click
  Matrices.new(@browser)
end

#save_changesObject

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.button(:value=>"Save Changes").click
  EditMatrixCells.new(@browser)
end

#select_styleObject

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