Class: NewPrivateMessage
- Includes:
- JForumsResources
- Defined in:
- lib/sakai-cle-test-api/page_objects/jforums.rb
Overview
New Private Message page in Discussion Forums.
Instance Method Summary collapse
-
#filename1(filename) ⇒ Object
Enters the specified filename in the file field.
-
#filename2(filename) ⇒ Object
Enters the specified filename in the file field.
-
#message_body=(text) ⇒ Object
Enters text into the FCKEditor text area, after going to the beginning of any existing text in the field.
-
#submit ⇒ Object
Clicks the Submit button, then instantiates the Information Class.
Methods included from JForumsResources
#discussion_home, #manage, #member_listing, #my_bookmarks, #my_profile, #private_messages, #search
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
#filename1(filename) ⇒ Object
Enters the specified filename in the file field.
409 410 411 |
# File 'lib/sakai-cle-test-api/page_objects/jforums.rb', line 409 def filename1(filename) frm.file_field(:name=>"file_0").set(File.(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.
418 419 420 |
# File 'lib/sakai-cle-test-api/page_objects/jforums.rb', line 418 def filename2(filename) frm.file_field(:name=>"file_1").set(File.(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.
396 397 398 399 |
# File 'lib/sakai-cle-test-api/page_objects/jforums.rb', line 396 def (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 |
#submit ⇒ Object
Clicks the Submit button, then instantiates the Information Class.
403 404 405 406 |
# File 'lib/sakai-cle-test-api/page_objects/jforums.rb', line 403 def submit frm.(:value=>"Submit").click Information.new(@browser) end |