Sha256: 220f7001a79e96dd1eae022361e464c65adbe9bbbb5b67c5304821c533ef72b7

Contents?: true

Size: 551 Bytes

Versions: 28

Compression:

Stored size: 551 Bytes

Contents

module OpsManagerUiDrivers
  module Version17
    class AvailableProducts
      def initialize(browser:)
        @browser = browser
      end

      def add_product_to_install(product_name)
        browser.visit '/'
        browser.click_on "add-#{product_name}"
        browser.find("#show-#{product_name}-configure-action", wait: 10)
      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

28 entries across 28 versions & 1 rubygems

Version Path
ops_manager_ui_drivers-1.9.1 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-1.9.0 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-1.8.2 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-1.8.1 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-1.8.0 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-1.7.3 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-1.7.1 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-1.7.0 lib/ops_manager_ui_drivers/version17/available_products.rb