Module: ReplyToMessageMethods
- 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
510 511 512 513 |
# File 'lib/kuali-sakai-common-lib/messages.rb', line 510 def frm.(:value=>"Add attachments").click MessagesAttachment.new(@browser) end |
#message_text=(text) ⇒ Object
505 506 507 508 |
# File 'lib/kuali-sakai-common-lib/messages.rb', line 505 def (text) frm.frame(:id, "pvtMsgReply:df_compose_body_inputRichText___Frame").td(:id, "xEditingArea").frame(:index=>0).send_keys(:home) frm.frame(:id, "pvtMsgReply:df_compose_body_inputRichText___Frame").td(:id, "xEditingArea").frame(:index=>0).send_keys(text) end |
#preview ⇒ Object
515 516 517 518 |
# File 'lib/kuali-sakai-common-lib/messages.rb', line 515 def preview frm.(:value=>"Preview").click MessagesPreview.new(@browser) end |
#save_draft ⇒ Object
520 521 522 523 |
# File 'lib/kuali-sakai-common-lib/messages.rb', line 520 def save_draft frm.(:value=>"Save Draft").click xxxxxxxxx.new(@browser) #FIXME end |
#send ⇒ Object
494 495 496 497 498 499 500 501 502 503 |
# File 'lib/kuali-sakai-common-lib/messages.rb', line 494 def send frm.(:value=>"Send ").click # Need logic here to ensure the # right class gets called... if frm.div(:class=>/breadCrumb/).text=~ /Messages.\/.Received/ MessagesReceivedList.new(@browser) else #FIXME Messages.new(@browser) end end |