Class: AddForm

Inherits:
BasePage show all
Defined in:
lib/sakai-cle-test-api/page_objects/forms.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_formObject



62
63
64
65
# File 'lib/sakai-cle-test-api/page_objects/forms.rb', line 62

def add_form
  frm.button(:value=>"Add Form").click
  Forms.new(@browser)
end

#instruction=(text) ⇒ Object



58
59
60
# File 'lib/sakai-cle-test-api/page_objects/forms.rb', line 58

def instruction=(text)
  frm.frame(:id, "instruction___Frame").td(:id, "xEditingArea").frame(:index=>0).send_keys(text)
end

#select_schema_fileObject



53
54
55
56
# File 'lib/sakai-cle-test-api/page_objects/forms.rb', line 53

def select_schema_file
  frm.link(:text=>"Select Schema File").click
  SelectSchemaFile.new(@browser)
end