Class: Feedback
- Defined in:
- lib/sambal-cle/page_objects/feedback.rb
Instance Method Summary collapse
- #add ⇒ Object
-
#feedback_items ⇒ Object
Returns an array containing the titles of the Feedback items listed on the page.
Methods inherited from BasePage
basic_page_elements, frame_element
Instance Method Details
#add ⇒ Object
10 11 12 13 |
# File 'lib/sambal-cle/page_objects/feedback.rb', line 10 def add frm.link(:text=>"Add").click AddUpdateFeedback.new(@browser) end |
#feedback_items ⇒ Object
Returns an array containing the titles of the Feedback items listed on the page.
17 18 19 20 21 22 23 24 |
# File 'lib/sambal-cle/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 |