Class: AddEditSyllabusItem
- Inherits:
-
SyllabusBase
- Object
- PageFactory
- BasePage
- SyllabusBase
- AddEditSyllabusItem
- Includes:
- FCKEditor
- Defined in:
- lib/sambal-cle/page_objects/syllabus.rb
Instance Method Summary collapse
-
#content=(text) ⇒ Object
Sends the specified string to the FCKEditor text area on the page.
-
#files_list ⇒ Object
Returns an array of the filenames in the attachments table.
Methods included from FCKEditor
#enter_source_text, #entity_picker, #get_source_text, #prepend, #select_all, #source, #source_field
Methods inherited from SyllabusBase
Methods inherited from BasePage
basic_page_elements, button, damballa, frame_element, link
Instance Method Details
#content=(text) ⇒ Object
Sends the specified string to the FCKEditor text area on the page.
95 96 97 |
# File 'lib/sambal-cle/page_objects/syllabus.rb', line 95 def content=(text) editor.send_keys(text) end |
#files_list ⇒ Object
Returns an array of the filenames in the attachments table
103 104 105 106 107 108 109 110 111 |
# File 'lib/sambal-cle/page_objects/syllabus.rb', line 103 def files_list names = [] frm.table(:class=>"listHier lines nolines").rows.each do |row| if row.td(:class=>"item").exist? names << row.td(:class=>"item").h4.text end end return names end |