Module: ForwardMessageMethods

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



548
549
550
551
# File 'lib/kuali-sakai-common-lib/messages.rb', line 548

def add_attachments
  frm.button(:value=>"Add attachments").click
  MessagesAttachment.new(@browser)
end

#message_text=(text) ⇒ Object



543
544
545
546
# File 'lib/kuali-sakai-common-lib/messages.rb', line 543

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

#previewObject



553
554
555
556
# File 'lib/kuali-sakai-common-lib/messages.rb', line 553

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

#save_draftObject



558
559
560
561
# File 'lib/kuali-sakai-common-lib/messages.rb', line 558

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

#sendObject



538
539
540
541
# File 'lib/kuali-sakai-common-lib/messages.rb', line 538

def send
  frm.button(:value=>"Send ").click
  MessagesReceivedList.new(@browser) #FIXME!
end