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.31.0 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.30.0 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.29.0 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.28.0 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.27.1 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.27.0 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.26.0 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.25.1 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.25.0 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.24.0 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.23.0 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.22.4 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.22.3 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.22.2 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.22.1 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.22.0 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.21.0 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.20.0 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.19.0 lib/ops_manager_ui_drivers/version17/available_products.rb
ops_manager_ui_drivers-2.18.0 lib/ops_manager_ui_drivers/version17/available_products.rb