Class: AddEditPortfolioPage
- Defined in:
- lib/sakai-cle-test-api/page_objects/portfolios.rb
Instance Method Summary collapse
- #add_page ⇒ Object
- #select_layout ⇒ Object
- #select_style ⇒ Object
- #simple_html_content=(text) ⇒ Object
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_page ⇒ Object
91 92 93 94 |
# File 'lib/sakai-cle-test-api/page_objects/portfolios.rb', line 91 def add_page frm.(:value=>"Add Page").click AddEditPortfolioContent.new(@browser) end |
#select_layout ⇒ Object
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_style ⇒ Object
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 |