Class: MessageView
- Defined in:
- lib/sambal-cle/page_objects/messages.rb
Overview
The Page where you are reading a Message.
Instance Method Summary collapse
- #forward ⇒ Object
-
#message_text ⇒ Object
Returns the contents of the message body.
-
#messages ⇒ Object
Clicks the “Messages” breadcrumb link to return to the top level of Messages.
- #received ⇒ Object
- #reply ⇒ Object
Methods inherited from BasePage
basic_page_elements, frame_element
Instance Method Details
#forward ⇒ Object
433 434 435 436 |
# File 'lib/sambal-cle/page_objects/messages.rb', line 433 def forward frm.(:value=>"Forward ").click ForwardMessage.new(@browser) end |
#message_text ⇒ Object
Returns the contents of the message body.
424 425 426 |
# File 'lib/sambal-cle/page_objects/messages.rb', line 424 def frm.div(:class=>"textPanel").text end |
#messages ⇒ Object
Clicks the “Messages” breadcrumb link to return to the top level of Messages. Then instantiates the Messages class.
446 447 448 449 |
# File 'lib/sambal-cle/page_objects/messages.rb', line 446 def frm.link(:text=>"Messages").click Messages.new(@browser) end |
#received ⇒ Object
438 439 440 441 |
# File 'lib/sambal-cle/page_objects/messages.rb', line 438 def received frm.link(:text=>"Received").click MessagesReceivedList.new(@browser) end |
#reply ⇒ Object
428 429 430 431 |
# File 'lib/sambal-cle/page_objects/messages.rb', line 428 def reply frm.(:value=>"Reply").click ReplyToMessage.new(@browser) end |