Class: AddEditPortfolioPage

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

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

#add_pageObject



91
92
93
94
# File 'lib/sakai-cle-test-api/page_objects/portfolios.rb', line 91

def add_page
  frm.button(:value=>"Add Page").click
  AddEditPortfolioContent.new(@browser)
end

#select_layoutObject



96
97
98
99
# File 'lib/sakai-cle-test-api/page_objects/portfolios.rb', line 96

def select_layout
  frm.link(:text=>"Select Layout").click
  ManagePortfolioLayouts.new @browser
end

#select_styleObject



101
102
103
104
# File 'lib/sakai-cle-test-api/page_objects/portfolios.rb', line 101

def select_style
  frm.link(:text=>"Select Style").click
  SelectPortfolioStyle.new @browser
end

#simple_html_content=(text) ⇒ Object



106
107
108
109
110
# File 'lib/sakai-cle-test-api/page_objects/portfolios.rb', line 106

def simple_html_content=(text)
  frm.frame(:id, "_id1:arrange:_id49_inputRichText___Frame").div(:title=>"Select All").fire_event("onclick")
  frm.frame(:id, "_id1:arrange:_id49_inputRichText___Frame").td(:id, "xEditingArea").frame(:index=>0).send_keys :backspace
  frm.frame(:id, "_id1:arrange:_id49_inputRichText___Frame").td(:id, "xEditingArea").frame(:index=>0).send_keys(text)
end