Class: NewPrivateMessage

Inherits:
JForumsBase show all
Defined in:
lib/sambal-cle/page_objects/jforums.rb

Overview

New Private Message page in Discussion Forums.

Instance Method Summary collapse

Methods inherited from JForumsBase

forums_page_elements

Methods inherited from BasePage

basic_page_elements, button, damballa, frame_element, link

Instance Method Details

#filename1(filename) ⇒ Object

Enters the specified filename in the file field.



276
277
278
# File 'lib/sambal-cle/page_objects/jforums.rb', line 276

def filename1(filename) #FIXME!
  frm.file_field(:name=>"file_0").set(File.expand_path(File.dirname(__FILE__)) + "/../../data/sakai-cle-test-api/" + filename)
end

#filename2(filename) ⇒ Object

Enters the specified filename in the file field.

Note that the file should be inside the data/sakai-cle-test-api folder. The file or folder name used for the filename variable should not include a preceding / character.



285
286
287
# File 'lib/sambal-cle/page_objects/jforums.rb', line 285

def filename2(filename) # FIXME!
  frm.file_field(:name=>"file_1").set(File.expand_path(File.dirname(__FILE__)) + "/../../data/sakai-cle-test-api/" + filename)
end

#message_body=(text) ⇒ Object

Enters text into the FCKEditor text area, after going to the beginning of any existing text in the field.



270
271
272
273
# File 'lib/sambal-cle/page_objects/jforums.rb', line 270

def message_body=(text)
  frm.frame(:id, "message___Frame").td(:id, "xEditingArea").frame(:index=>0).send_keys(:home)
  frm.frame(:id, "message___Frame").td(:id, "xEditingArea").frame(:index=>0).send_keys(text)
end