Class: MessageView

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

Overview

The Page where you are reading 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

#forwardObject



433
434
435
436
# File 'lib/sakai-cle-test-api/page_objects/messages.rb', line 433

def forward
  frm.button(:value=>"Forward ").click
  ForwardMessage.new(@browser)
end

#message_textObject

Returns the contents of the message body.



424
425
426
# File 'lib/sakai-cle-test-api/page_objects/messages.rb', line 424

def message_text
  frm.div(:class=>"textPanel").text
end

#messagesObject

Clicks the “Messages” breadcrumb link to return to the top level of Messages. Then instantiates the Messages class.



446
447
448
449
# File 'lib/sakai-cle-test-api/page_objects/messages.rb', line 446

def messages
  frm.link(:text=>"Messages").click
  Messages.new(@browser)
end

#receivedObject



438
439
440
441
# File 'lib/sakai-cle-test-api/page_objects/messages.rb', line 438

def received
  frm.link(:text=>"Received").click
  MessagesReceivedList.new(@browser)
end

#replyObject



428
429
430
431
# File 'lib/sakai-cle-test-api/page_objects/messages.rb', line 428

def reply
  frm.button(:value=>"Reply").click
  ReplyToMessage.new(@browser)
end