Class: ForwardMessage

Inherits:
BasePage show all
Defined in:
lib/sakai-cle-test-api/page_objects/messages.rb

Overview

The page for composing a message

Instance Method Summary collapse

Methods inherited from BasePage

basic_page_elements, frame_element

Methods inherited from PageMaker

element, expected_element, expected_title, #initialize, #method_missing, page_url

Constructor Details

This class inherits a constructor from PageMaker

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class PageMaker

Instance Method Details

#add_attachmentsObject



540
541
542
543
# File 'lib/sakai-cle-test-api/page_objects/messages.rb', line 540

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

#message_text=(text) ⇒ Object



535
536
537
538
# File 'lib/sakai-cle-test-api/page_objects/messages.rb', line 535

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



545
546
547
548
# File 'lib/sakai-cle-test-api/page_objects/messages.rb', line 545

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

#sendObject



530
531
532
533
# File 'lib/sakai-cle-test-api/page_objects/messages.rb', line 530

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