Sha256: d6b271c74532d8553ebcc611d6622d8e75b4e669f5e080321e30678ff9439bdf

Contents?: true

Size: 541 Bytes

Versions: 3

Compression:

Stored size: 541 Bytes

Contents

module OpsManagerUiDrivers
  module Version16
    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")
      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

3 entries across 3 versions & 1 rubygems

Version Path
ops_manager_ui_drivers-0.15.1 lib/ops_manager_ui_drivers/version16/available_products.rb
ops_manager_ui_drivers-0.15.0 lib/ops_manager_ui_drivers/version16/available_products.rb
ops_manager_ui_drivers-0.14.1 lib/ops_manager_ui_drivers/version16/available_products.rb