Class: OpsManagerUiDrivers::Version17::ProductDashboard

Inherits:
OpsManagerUiDrivers::Version16::ProductDashboard show all
Defined in:
lib/ops_manager_ui_drivers/version17/product_dashboard.rb

Instance Method Summary collapse

Methods inherited from OpsManagerUiDrivers::Version16::ProductDashboard

#upgrade_microbosh

Methods inherited from OpsManagerUiDrivers::Version15::ProductDashboard

#most_recent_install_log, #product_complete?, #product_on_dashboard?

Methods inherited from OpsManagerUiDrivers::Version14::ProductDashboard

#apply_updates, #delete_installation_available?, #delete_product, #delete_whole_installation, #deletion_in_progress?, #import_product_from, #initialize, #product_configuration_percentage, #reset_state, #revert_available?, #revert_pending_changes, #upgrade_microbosh, #upgrade_product, #version_for_product, #wait_for_installation_to_be_deleted

Constructor Details

This class inherits a constructor from OpsManagerUiDrivers::Version14::ProductDashboard

Instance Method Details

#delete_unused_products ⇒ Object



15
16
17
18
# File 'lib/ops_manager_ui_drivers/version17/product_dashboard.rb', line 15

def delete_unused_products
  open_dashboard
  @browser.find('a#delete_unused_products').trigger('click')
end

#deleted_product?(product_name) ⇒ Boolean

Returns:

  • (Boolean)


20
21
22
23
# File 'lib/ops_manager_ui_drivers/version17/product_dashboard.rb', line 20

def deleted_product?(product_name)
  open_dashboard
  browser.first("#show-#{product_name.dasherize}-information-action").present?
end

#import_installation_file(_file_path) ⇒ Object



6
7
8
# File 'lib/ops_manager_ui_drivers/version17/product_dashboard.rb', line 6

def import_installation_file(_file_path)
  fail('Importing is no longer supported via the Product Dashboard. See Version17::Setup#import_installation_file')
end

#product_available?(product_name, product_version) ⇒ Boolean

Returns:

  • (Boolean)


10
11
12
13
# File 'lib/ops_manager_ui_drivers/version17/product_dashboard.rb', line 10

def product_available?(product_name, product_version)
  open_dashboard
  browser.all("li.#{product_name} input#product_version[value='#{product_version}']", {visible: false}).any?
end