Class: CreateBloggerPost

Inherits:
BasePage
  • Object
show all
Includes:
FCKEditor
Defined in:
lib/sambal-cle/page_objects/blogger.rb

Overview

The page where users create a Post for their Blogger blog.

Instance Method Summary collapse

Methods included from FCKEditor

#enter_source_text, #entity_picker, #get_source_text, #prepend, #select_all, #source, #source_field

Methods inherited from BasePage

basic_page_elements, button, damballa, frame_element, link

Instance Method Details

#abstract=(text) ⇒ Object

Enters the specified string into the FCKEditor for the Abstract.



64
65
66
# File 'lib/sambal-cle/page_objects/blogger.rb', line 64

def abstract=(text)
  frm.frame(:id, "PostForm:shortTextBox_inputRichText___Frame").td(:id, "xEditingArea").frame(:index=>0).send_keys(text)
end

#file_field(filename, filepath = "") ⇒ Object

Enters the specified directory/filename in the file field.



99
100
101
# File 'lib/sambal-cle/page_objects/blogger.rb', line 99

def file_field(filename, filepath="")
  frm().file_field(:name=>"PostForm:tab3:_id51").set(filepath + filename)
end

#image_file(filename, filepath = "") ⇒ Object

Enters the specified filename in the file field for images.

The file path can be entered as an optional second parameter.



94
95
96
# File 'lib/sambal-cle/page_objects/blogger.rb', line 94

def image_file(filename, filepath="")
  frm.file_field(:name=>"PostForm:tab1:_id29").set(filepath + filename)
end

#text=(text) ⇒ Object

Enters the specified string into the FCKEditor for the Text of the Blog.



69
70
71
# File 'lib/sambal-cle/page_objects/blogger.rb', line 69

def text=(text)
  frm().frame(:id, "PostForm:tab0:main_text_inputRichText___Frame").td(:id, "xEditingArea").frame(:index=>0).send_keys(text)
end