Class: EditSiteInfo

Inherits:
BasePage
  • Object
show all
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

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

#editorObject

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

#pagesObject

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.button(:value=>"Pages").click
  AddEditPages.new(@browser)
end

#propertiesObject

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.button(:value=>"Properties").click
  AddEditSiteProperties.new(@browser)
end

#remove_siteObject

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

#saveObject

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.button(:value=>"Save").click
  Sites.new(@browser)
end

#save_asObject

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_onlyObject

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