Sha256: c472e0505dd6ffad2567ed295fecb61d3db13f7403bf5ff55ebe8bc300beb0ce

Contents?: true

Size: 659 Bytes

Versions: 1

Compression:

Stored size: 659 Bytes

Contents

require 'ops_manager_ui_drivers/wait_helper'

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

      def add_product_to_install(product_name)
        browser.visit '/'
        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

1 entries across 1 versions & 1 rubygems

Version Path
ops_manager_ui_drivers-2.9.3 lib/ops_manager_ui_drivers/version17/available_products.rb