Class: AddBloggerComment

Inherits:
BasePage
  • Object
show all
Defined in:
lib/sambal-cle/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

Instance Method Details

#saveObject

Clicks the Save button and instantiates The ViewBloggerPost Class.



195
196
197
198
# File 'lib/sambal-cle/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/sambal-cle/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