Class: MessagesDraftList

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

Overview

The page showing the list of Draft messages.

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

#alert_message_textObject

Grabs the text from the message box that appears after doing some action.

Use this method to simplify writing Test::Unit asserts



410
411
412
# File 'lib/sakai-cle-test-api/page_objects/messages.rb', line 410

def alert_message_text
  frm.span(:class=>"success").text
end

#compose_messageObject



399
400
401
402
# File 'lib/sakai-cle-test-api/page_objects/messages.rb', line 399

def compose_message
  frm.link(:text=>"Compose Message").click
  ComposeMessage.new(@browser)
end