Class: AddEditTerm

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



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

def add_term
  frm.button(:value=>"Add Term").click
  Glossary.new(@browser)
end

#long_description=(text) ⇒ Object



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

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

#save_changesObject



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

def save_changes
  frm.button(:value=>"Save Changes").click
  Glossary.new(@browser)
end