class OpsManagerUiDrivers::Version15::ProductDashboard

Public Instance Methods

import_installation_file(file_path) click to toggle source
# 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_log() click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# 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

Private Instance Methods

allow_privilege_verification_errors() click to toggle source
# File lib/ops_manager_ui_drivers/version15/product_dashboard.rb, line 40
def allow_privilege_verification_errors
  return if @allowed_ignorable_errors.include?(/required datacenter privileges/i)

  @allowed_ignorable_errors << /required datacenter privileges/i
end