Sha256: c58a25dc7c30467b19f5cd3d0dde85fa6e03dc3ee941c49118611e436fa89d31

Contents?: true

Size: 658 Bytes

Versions: 12

Compression:

Stored size: 658 Bytes

Contents

require 'ops_manager_ui_drivers/wait_helper'

module OpsManagerUiDrivers
  module Version17
    class AvailableProducts
      include WaitHelper

      def initialize(browser:)
        @browser = browser
      end

      def add_product_to_install(product_name)
        browser.visit '/'
        poll_up_to_times 3 do
          browser.click_on "add-#{product_name}"
          browser.find("#show-#{product_name}-configure-action")
        end
      end

      def product_added?(product_name)
        browser.visit '/'
        browser.all("#show-#{product_name}-configure-action").any?
      end

      private

      attr_reader :browser
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ops_manager_ui_drivers-2.9.2 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.9.1 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.9.0 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.8.0 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.7.3 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.7.2 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.7.1 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.7.0 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.6.4 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.6.3 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.6.2 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.6.1 lib/ops_manager_ui_drivers/version17/available_products.rb