Class: EditTemplate
- Defined in:
- lib/sakai-cle-test-api/page_objects/evaluations.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 ⇒ Object
55 56 57 58 |
# File 'lib/sakai-cle-test-api/page_objects/evaluations.rb', line 55 def add frm.(:value=>"Add").click frm.frame(:id, "item-text___Frame").td(:id, "xEditingArea").wait_until_present end |
#item_text=(text) ⇒ Object
49 50 51 |
# File 'lib/sakai-cle-test-api/page_objects/evaluations.rb', line 49 def item_text=(text) frm.frame(:id, "item-text___Frame").td(:id, "xEditingArea").frame(:index=>0).send_keys(text) end |
#save_item ⇒ Object
60 61 62 63 64 |
# File 'lib/sakai-cle-test-api/page_objects/evaluations.rb', line 60 def save_item frm.(:value=>"Save item").click frm.link(:text=>"New evaluation").wait_until_present EditTemplate.new @browser end |