Module: ReplyToMessageMethods

Includes:
PageObject
Defined in:
lib/kuali-sakai-common-lib/messages.rb

Overview

The page for composing a message

Instance Method Summary collapse

Instance Method Details

#add_attachmentsObject



510
511
512
513
# File 'lib/kuali-sakai-common-lib/messages.rb', line 510

def add_attachments
  frm.button(: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 message_text=(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

#previewObject



515
516
517
518
# File 'lib/kuali-sakai-common-lib/messages.rb', line 515

def preview
  frm.button(:value=>"Preview").click
  MessagesPreview.new(@browser)
end

#save_draftObject



520
521
522
523
# File 'lib/kuali-sakai-common-lib/messages.rb', line 520

def save_draft
  frm.button(:value=>"Save Draft").click
  xxxxxxxxx.new(@browser) #FIXME
end

#sendObject



494
495
496
497
498
499
500
501
502
503
# File 'lib/kuali-sakai-common-lib/messages.rb', line 494

def send
  frm.button(: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