Sha256: 54dca5be4313a5893dcf146c2fe48839c034c84a3b66259864343f36658c3f82

Contents?: true

Size: 773 Bytes

Versions: 64

Compression:

Stored size: 773 Bytes

Contents

require 'ops_manager_ui_drivers/wait_helper'
require 'ops_manager_ui_drivers/animation_helper'

module OpsManagerUiDrivers
  module Version17
    class AvailableProducts
      include AnimationHelper

      def initialize(browser:)
        @browser = browser
      end

      def add_product_to_install(product_name)
        browser.visit '/'
        disable_css_transitions!
        browser.find("ul.product-list li.#{product_name}.product").hover
        browser.click_on "add-#{product_name}"
        browser.find("#show-#{product_name}-configure-action")
      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

64 entries across 64 versions & 1 rubygems

Version Path
ops_manager_ui_drivers-2.17.0 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.16.0 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.15.0 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.14.3 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.14.2 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.14.1 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.14.0 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.13.1 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.13.0 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.12.0 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.11.0 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.10.9 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.10.8 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.10.7 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.10.6 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.10.5 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.10.4 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.10.3 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.10.2 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.10.1 lib/ops_manager_ui_drivers/version17/available_products.rb