Class: AddEditTools

Inherits:
BasePage
  • Object
show all
Defined in:
lib/sambal-cle/page_objects/sites.rb

Overview

Page when editing a Site and adding/editing tools for pages.

Instance Method Summary collapse

Methods inherited from BasePage

basic_page_elements, frame_element

Instance Method Details

#new_toolObject

Clicks the New Tool link, then instantiates the NewTool class.



155
156
157
158
# File 'lib/sambal-cle/page_objects/sites.rb', line 155

def new_tool
  frm.link(:text=>"New Tool").click
  NewTool.new(@browser)
end

#saveObject

Clicks the Save button, then instantiates the AddEditPages class.



162
163
164
165
# File 'lib/sambal-cle/page_objects/sites.rb', line 162

def save
  frm.button(:value=>"Save").click
  AddEditPages.new(@browser)
end