Class: EditSiteInfo
- Defined in:
- lib/sambal-cle/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
Instance Method Details
#description=(text) ⇒ Object
Enters the specified text string in the text area of the FCKEditor.
76 77 78 |
# File 'lib/sambal-cle/page_objects/sites.rb', line 76 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
82 83 84 |
# File 'lib/sambal-cle/page_objects/sites.rb', line 82 def editor @browser.frame(:index=>0).frame(:id, "description___Frame") end |
#pages ⇒ Object
Clicks the Pages button, then instantiates the AddEditPages page class.
96 97 98 99 |
# File 'lib/sambal-cle/page_objects/sites.rb', line 96 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.
89 90 91 92 |
# File 'lib/sambal-cle/page_objects/sites.rb', line 89 def properties frm.(:value=>"Properties").click AddEditSiteProperties.new(@browser) end |
#remove_site ⇒ Object
Clicks the Remove Site button, then instantiates the RemoveSite page class.
50 51 52 53 |
# File 'lib/sambal-cle/page_objects/sites.rb', line 50 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.
57 58 59 60 |
# File 'lib/sambal-cle/page_objects/sites.rb', line 57 def save frm.(:value=>"Save").click Sites.new(@browser) end |
#save_as ⇒ Object
Clicks the Save As link, then instantiates the SiteSaveAs page class.
64 65 66 67 |
# File 'lib/sambal-cle/page_objects/sites.rb', line 64 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.
70 71 72 |
# File 'lib/sambal-cle/page_objects/sites.rb', line 70 def site_id_read_only @browser.frame(:index=>0).table(:class=>"itemSummary").td(:class=>"shorttext", :index=>0).text end |