Class: AddStyle
- Defined in:
- lib/sakai-cle-test-api/page_objects/styles.rb
Instance Method Summary collapse
-
#add_style ⇒ Object
Clicks the Add Style button and instantiates the Styles Class.
-
#select_file ⇒ Object
Clicks the “Select File” link and instantiates the StylesAddAttachment 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_style ⇒ Object
Clicks the Add Style button and instantiates the Styles Class.
26 27 28 29 |
# File 'lib/sakai-cle-test-api/page_objects/styles.rb', line 26 def add_style frm.(:value=>"Add Style").click Styles.new(@browser) end |
#select_file ⇒ Object
Clicks the “Select File” link and instantiates the StylesAddAttachment Class.
33 34 35 36 |
# File 'lib/sakai-cle-test-api/page_objects/styles.rb', line 33 def select_file frm.link(:text=>"Select File").click StylesAddAttachment.new(@browser) end |