Module: ComposeMessageMethods
- Includes:
- PageObject
- Defined in:
- lib/kuali-sakai-common-lib/messages.rb
Overview
The page for composing a message
Instance Method Summary collapse
- #add_attachments ⇒ Object
- #message_text=(text) ⇒ Object
- #preview ⇒ Object
- #save_draft ⇒ Object
- #send ⇒ Object
Instance Method Details
#add_attachments ⇒ Object
468 469 470 471 |
# File 'lib/kuali-sakai-common-lib/messages.rb', line 468 def frm.(:value=>"Add attachments").click MessagesAttachment.new(@browser) end |
#message_text=(text) ⇒ Object
462 463 464 465 466 |
# File 'lib/kuali-sakai-common-lib/messages.rb', line 462 def (text) frm.frame(:id, "compose:pvt_message_body_inputRichText___Frame").td(:id, "xEditingArea").wait_until_present sleep 0.3 frm.frame(:id, "compose:pvt_message_body_inputRichText___Frame").td(:id, "xEditingArea").frame(:index=>0).send_keys(text) end |
#preview ⇒ Object
473 474 475 476 |
# File 'lib/kuali-sakai-common-lib/messages.rb', line 473 def preview frm.(:value=>"Preview").click MessagesPreview.new(@browser) end |
#save_draft ⇒ Object
478 479 480 481 |
# File 'lib/kuali-sakai-common-lib/messages.rb', line 478 def save_draft frm.(:value=>"Save Draft").click xxxxxxxxx.new(@browser) #FIXME end |
#send ⇒ Object
457 458 459 460 |
# File 'lib/kuali-sakai-common-lib/messages.rb', line 457 def send frm.(:value=>"Send ").click Messages.new(@browser) end |