Class: EditTemplate

Inherits:
BasePage
  • Object
show all
Includes:
FCKEditor
Defined in:
lib/sambal-cle/page_objects/evaluations.rb

Instance Method Summary collapse

Methods included from FCKEditor

#enter_source_text, #entity_picker, #get_source_text, #prepend, #select_all, #source, #source_field

Methods inherited from BasePage

basic_page_elements, button, damballa, frame_element, link

Instance Method Details

#addObject



76
77
78
79
# File 'lib/sambal-cle/page_objects/evaluations.rb', line 76

def add
  frm.button(:value=>"Add").click
  frm.frame(:id, "item-text___Frame").td(:id, "xEditingArea").wait_until_present
end

#item_text=(text) ⇒ Object



70
71
72
# File 'lib/sambal-cle/page_objects/evaluations.rb', line 70

def item_text=(text)
  frm.frame(:id, "item-text___Frame").td(:id, "xEditingArea").frame(:index=>0).send_keys(text)
end

#save_itemObject



81
82
83
84
# File 'lib/sambal-cle/page_objects/evaluations.rb', line 81

def save_item
  frm.button(:value=>"Save item").click
  frm.link(:text=>"New evaluation").wait_until_present
end