Class: AddStyle

Inherits:
BasePage show all
Defined in:
lib/sambal-cle/page_objects/styles.rb

Instance Method Summary collapse

Methods inherited from BasePage

basic_page_elements, frame_element

Instance Method Details

#add_styleObject

Clicks the Add Style button and instantiates the Styles Class.



26
27
28
29
# File 'lib/sambal-cle/page_objects/styles.rb', line 26

def add_style
  frm.button(:value=>"Add Style").click
  Styles.new(@browser)
end

#select_fileObject

Clicks the “Select File” link and instantiates the StylesAddAttachment Class.



33
34
35
36
# File 'lib/sambal-cle/page_objects/styles.rb', line 33

def select_file
  frm.link(:text=>"Select File").click
  StylesAddAttachment.new(@browser)
end