Class: AddBloggerComment

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

Overview

The page for adding a comment to a Blog post.

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

#saveObject

Clicks the Save button and instantiates The ViewBloggerPost Class.



195
196
197
198
# File 'lib/sakai-cle-test-api/page_objects/blogger.rb', line 195

def save
  frm.button(:value=>"Save").click
  ViewBloggerPost.new(@browser)
end

#your_comment=(text) ⇒ Object

Enters the specified string into the FCKEditor box for the Comment.



201
202
203
# File 'lib/sakai-cle-test-api/page_objects/blogger.rb', line 201

def your_comment=(text)
  frm.frame(:id, "_id1:_id11_inputRichText___Frame").td(:id, "xEditingArea").frame(:index=>0).send_keys(text)
end