Module: ComposeMessageMethods

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



468
469
470
471
# File 'lib/kuali-sakai-common-lib/messages.rb', line 468

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

#previewObject



473
474
475
476
# File 'lib/kuali-sakai-common-lib/messages.rb', line 473

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

#save_draftObject



478
479
480
481
# File 'lib/kuali-sakai-common-lib/messages.rb', line 478

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

#sendObject



457
458
459
460
# File 'lib/kuali-sakai-common-lib/messages.rb', line 457

def send
  frm.button(:value=>"Send ").click
  Messages.new(@browser)
end