Class: Forms
- Defined in:
- lib/sambal-cle/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
Instance Method Details
#add ⇒ Object
Clicks the Add button and instantiates the AddForm Class.
12 13 14 15 |
# File 'lib/sambal-cle/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/sambal-cle/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/sambal-cle/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 |