Sha256: 106d00669a6734a69cad1576ac9725992b9a589f5f2bc1c79f6980361094dc2b

Contents?: true

Size: 541 Bytes

Versions: 6

Compression:

Stored size: 541 Bytes

Contents

module OpsManagerUiDrivers
  module Version14
    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

6 entries across 6 versions & 1 rubygems

Version Path
ops_manager_ui_drivers-0.15.1 lib/ops_manager_ui_drivers/version14/available_products.rb
ops_manager_ui_drivers-0.15.0 lib/ops_manager_ui_drivers/version14/available_products.rb
ops_manager_ui_drivers-0.14.1 lib/ops_manager_ui_drivers/version14/available_products.rb
ops_manager_ui_drivers-0.14.0 lib/ops_manager_ui_drivers/version14/available_products.rb
ops_manager_ui_drivers-0.13.0 lib/ops_manager_ui_drivers/version14/available_products.rb
ops_manager_ui_drivers-0.12.0 lib/ops_manager_ui_drivers/version14/available_products.rb