Module: MessageViewMethods

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

Overview

The Page where you are reading a Message.

Instance Method Summary collapse

Instance Method Details

#forwardObject



434
435
436
437
# File 'lib/kuali-sakai-common-lib/messages.rb', line 434

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

#message_textObject

Returns the contents of the message body.



425
426
427
# File 'lib/kuali-sakai-common-lib/messages.rb', line 425

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.



447
448
449
450
# File 'lib/kuali-sakai-common-lib/messages.rb', line 447

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

#receivedObject



439
440
441
442
# File 'lib/kuali-sakai-common-lib/messages.rb', line 439

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

#replyObject



429
430
431
432
# File 'lib/kuali-sakai-common-lib/messages.rb', line 429

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