Class: AddEditEvent

Inherits:
CalendarBase show all
Includes:
FCKEditor
Defined in:
lib/sambal-cle/page_objects/calendar.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 CalendarBase

menu_elements

Methods inherited from BasePage

basic_page_elements, frame_element

Instance Method Details

#attachment?(file_name) ⇒ Boolean

Returns true if the page has a link with the specified file name. Use for test case asserts.

Returns:

  • (Boolean)


195
196
197
# File 'lib/sambal-cle/page_objects/calendar.rb', line 195

def attachment?(file_name)
  frm.link(:text=>file_name).exist?
end

#custom_field_text(field, text) ⇒ Object

Use this method to enter text into custom fields on the page. The “field” variable is the name of the field, while the “text” is the string you want to put into it.



203
204
205
# File 'lib/sambal-cle/page_objects/calendar.rb', line 203

def custom_field_text(field, text)
  frm.text_field(:name=>field).set(text)
end

#message=(text) ⇒ Object



179
180
181
# File 'lib/sambal-cle/page_objects/calendar.rb', line 179

def message=(text)
  editor.td(:id, "xEditingArea").frame(:index=>0).send_keys(text)
end