Class: OpsManagerUiDrivers::Version15::ProductDashboard

Inherits:
OpsManagerUiDrivers::Version14::ProductDashboard show all
Defined in:
lib/ops_manager_ui_drivers/version15/product_dashboard.rb

Instance Method Summary collapse

Methods inherited from OpsManagerUiDrivers::Version14::ProductDashboard

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

Methods included from AnimationHelper

#disable_css_transitions!

Constructor Details

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

Instance Method Details

#import_installation_file(file_path) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/ops_manager_ui_drivers/version15/product_dashboard.rb', line 6

def import_installation_file(file_path)
  open_dashboard
  browser.click_on 'toggle-installation-dropdown-action'
  browser.click_on 'show-export-settings'
  browser.page.document.synchronize do
    browser.click_on 'close-warning'
    browser.find('#warning-modal[aria-hidden=true]')
  end
  browser.attach_file 'import[file]', file_path
  browser.click_on 'import-settings'
  browser.poll_up_to_times(20) { browser.assert_text('Successfully imported installation.') }
end

#most_recent_install_logObject



29
30
31
32
33
34
35
36
# File 'lib/ops_manager_ui_drivers/version15/product_dashboard.rb', line 29

def most_recent_install_log
  open_dashboard
  if browser.all('#installation-logs li a', visible: false).any?
    base_url = browser.first('#installation-logs li a', visible: false)[:href]
    browser.visit "#{base_url}.text"
    browser.source
  end
end

#product_complete?(product_name) ⇒ Boolean

Returns:

  • (Boolean)


24
25
26
27
# File 'lib/ops_manager_ui_drivers/version15/product_dashboard.rb', line 24

def product_complete?(product_name)
  open_dashboard
  browser.all("a#show-#{product_name}-configure-action[data-progress='100']").any?
end

#product_on_dashboard?(product_name) ⇒ Boolean

Returns:

  • (Boolean)


19
20
21
22
# File 'lib/ops_manager_ui_drivers/version15/product_dashboard.rb', line 19

def product_on_dashboard?(product_name)
  open_dashboard
  browser.all("a#show-#{product_name}-configure-action").any?
end