Sha256: 8451290261b33eede904000924f948f75b76015e100211bdd59ec75214905115

Contents?: true

Size: 1.07 KB

Versions: 8

Compression:

Stored size: 1.07 KB

Contents

require 'ops_manager_ui_drivers/version16/product_dashboard'

module OpsManagerUiDrivers
  module Version17
    class ProductDashboard < Version16::ProductDashboard
      def import_installation_file(_file_path)
        fail('Importing is no longer supported via the Product Dashboard. See Version17::Setup#import_installation_file')
      end

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

      def delete_product(product_name)
        open_dashboard
        browser.click_on "open-delete-#{product_name}-modal"
        wait_for_modal_css_transition_to_complete
        browser.click_on "delete-#{product_name}-action"
      end

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

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ops_manager_ui_drivers-2.8.0 lib/ops_manager_ui_drivers/version17/product_dashboard.rb
ops_manager_ui_drivers-2.7.3 lib/ops_manager_ui_drivers/version17/product_dashboard.rb
ops_manager_ui_drivers-2.7.2 lib/ops_manager_ui_drivers/version17/product_dashboard.rb
ops_manager_ui_drivers-2.7.1 lib/ops_manager_ui_drivers/version17/product_dashboard.rb
ops_manager_ui_drivers-2.7.0 lib/ops_manager_ui_drivers/version17/product_dashboard.rb
ops_manager_ui_drivers-2.6.4 lib/ops_manager_ui_drivers/version17/product_dashboard.rb
ops_manager_ui_drivers-2.6.3 lib/ops_manager_ui_drivers/version17/product_dashboard.rb
ops_manager_ui_drivers-2.6.2 lib/ops_manager_ui_drivers/version17/product_dashboard.rb