Class: Feedback

Inherits:
BasePage show all
Defined in:
lib/sakai-cle-test-api/page_objects/feedback.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

#addObject



10
11
12
13
# File 'lib/sakai-cle-test-api/page_objects/feedback.rb', line 10

def add
  frm.link(:text=>"Add").click
  AddUpdateFeedback.new(@browser)
end

#feedback_itemsObject

Returns an array containing the titles of the Feedback items listed on the page.



17
18
19
20
21
22
23
24
# File 'lib/sakai-cle-test-api/page_objects/feedback.rb', line 17

def feedback_items
  items = []
  frm.table(:class=>"listHier lines nolines").rows.each_with_index do |row, index|
    next if index == 0
    items << row[0].text
  end
  return items
end