Class: OpsManagerUiDrivers::Version17::ProductConfiguration
- Inherits:
-
Object
- Object
- OpsManagerUiDrivers::Version17::ProductConfiguration
show all
- Defined in:
- lib/ops_manager_ui_drivers/version17/product_configuration.rb
Instance Method Summary
collapse
Constructor Details
Returns a new instance of ProductConfiguration.
6
7
8
9
|
# File 'lib/ops_manager_ui_drivers/version17/product_configuration.rb', line 6
def initialize(browser:, product_name:)
@browser = browser
@product_name = product_name
end
|
Instance Method Details
#product_errands ⇒ Object
24
25
26
|
# File 'lib/ops_manager_ui_drivers/version17/product_configuration.rb', line 24
def product_errands
Version17::ProductErrands.new(browser: browser, product_name: product_name)
end
|
20
21
22
|
# File 'lib/ops_manager_ui_drivers/version17/product_configuration.rb', line 20
def product_form(form_name)
Version17::ProductForm.new(browser: browser, product_name: product_name, form_name: form_name)
end
|
#upload_stemcell(stemcell_file_path) ⇒ Object
11
12
13
14
15
16
17
18
|
# File 'lib/ops_manager_ui_drivers/version17/product_configuration.rb', line 11
def upload_stemcell(stemcell_file_path)
visit_product_page
browser.click_on "show-#{product_name}-stemcell-assignment-action"
browser.attach_file('product_stemcell[file]', stemcell_file_path, {visible: false})
browser.poll_up_to_times(20) {
browser.assert_text("Stemcell '#{File.basename(stemcell_file_path)}' has been uploaded successfully.")
}
end
|