Class: EditSiteInfo
- Defined in:
- lib/sakai-cle-test-api/page_objects/sites.rb
Overview
Page that appears when you’ve clicked a Site ID in the Sites section of the Administration Workspace.
Instance Method Summary collapse
-
#description=(text) ⇒ Object
Enters the specified text string in the text area of the FCKEditor.
-
#editor ⇒ Object
The FCKEditor object.
-
#pages ⇒ Object
Clicks the Pages button, then instantiates the AddEditPages page class.
-
#properties ⇒ Object
Clicks the Properties button on the page, then instantiates the AddEditSiteProperties page class.
-
#remove_site ⇒ Object
Clicks the Remove Site button, then instantiates the RemoveSite page class.
-
#save ⇒ Object
Clicks the Save button, then instantiates the Sites page class.
-
#save_as ⇒ Object
Clicks the Save As link, then instantiates the SiteSaveAs page class.
-
#site_id_read_only ⇒ Object
Gets the Site ID from the page.
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
#description=(text) ⇒ Object
Enters the specified text string in the text area of the FCKEditor.
86 87 88 |
# File 'lib/sakai-cle-test-api/page_objects/sites.rb', line 86 def description=(text) editor.td(:id, "xEditingArea").frame(:index=>0).send_keys(text) end |
#editor ⇒ Object
The FCKEditor object. Use this object for wait commands when the site is slow
92 93 94 |
# File 'lib/sakai-cle-test-api/page_objects/sites.rb', line 92 def editor @browser.frame(:index=>0).frame(:id, "description___Frame") end |
#pages ⇒ Object
Clicks the Pages button, then instantiates the AddEditPages page class.
106 107 108 109 |
# File 'lib/sakai-cle-test-api/page_objects/sites.rb', line 106 def pages frm.(:value=>"Pages").click AddEditPages.new(@browser) end |
#properties ⇒ Object
Clicks the Properties button on the page, then instantiates the AddEditSiteProperties page class.
99 100 101 102 |
# File 'lib/sakai-cle-test-api/page_objects/sites.rb', line 99 def properties frm.(:value=>"Properties").click AddEditSiteProperties.new(@browser) end |
#remove_site ⇒ Object
Clicks the Remove Site button, then instantiates the RemoveSite page class.
60 61 62 63 |
# File 'lib/sakai-cle-test-api/page_objects/sites.rb', line 60 def remove_site frm.link(:text, "Remove Site").click RemoveSite.new(@browser) end |
#save ⇒ Object
Clicks the Save button, then instantiates the Sites page class.
67 68 69 70 |
# File 'lib/sakai-cle-test-api/page_objects/sites.rb', line 67 def save frm.(:value=>"Save").click Sites.new(@browser) end |
#save_as ⇒ Object
Clicks the Save As link, then instantiates the SiteSaveAs page class.
74 75 76 77 |
# File 'lib/sakai-cle-test-api/page_objects/sites.rb', line 74 def save_as frm.link(:text, "Save As").click SiteSaveAs.new(@browser) end |
#site_id_read_only ⇒ Object
Gets the Site ID from the page.
80 81 82 |
# File 'lib/sakai-cle-test-api/page_objects/sites.rb', line 80 def site_id_read_only @browser.frame(:index=>0).table(:class=>"itemSummary").td(:class=>"shorttext", :index=>0).text end |