Class: Forms
- Defined in:
- lib/sakai-cle-test-api/page_objects/forms.rb
Overview
The topmost page of Forms in a Portfolio Site.
Instance Method Summary collapse
-
#add ⇒ Object
Clicks the Add button and instantiates the AddForm Class.
-
#import ⇒ Object
Clicks the Import button, then instantiates the ImportForms Class.
-
#publish(form_name) ⇒ Object
Clicks the Publish buton for the specified Form, then instantiates the PublishForm 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 ⇒ Object
Clicks the Add button and instantiates the AddForm Class.
12 13 14 15 |
# File 'lib/sakai-cle-test-api/page_objects/forms.rb', line 12 def add frm.link(:text=>"Add").click AddForm.new(@browser) end |
#import ⇒ Object
Clicks the Import button, then instantiates the ImportForms Class.
26 27 28 29 |
# File 'lib/sakai-cle-test-api/page_objects/forms.rb', line 26 def import frm.link(:text=>"Import").click ImportForms.new(@browser) end |
#publish(form_name) ⇒ Object
Clicks the Publish buton for the specified Form, then instantiates the PublishForm Class.
19 20 21 22 |
# File 'lib/sakai-cle-test-api/page_objects/forms.rb', line 19 def publish(form_name) frm.table(:class=>"listHier lines nolines").tr(:text, /#{Regexp.escape(form_name)}/).link(:text=>/Publish/).click PublishForm.new(@browser) end |