Sha256: 6b477895f02c12c4008b0d6765487296b4784fbbca349b0d24a497446c136dd7

Contents?: true

Size: 541 Bytes

Versions: 6

Compression:

Stored size: 541 Bytes

Contents

module OpsManagerUiDrivers
  module Version15
    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/version15/available_products.rb
ops_manager_ui_drivers-0.15.0 lib/ops_manager_ui_drivers/version15/available_products.rb
ops_manager_ui_drivers-0.14.1 lib/ops_manager_ui_drivers/version15/available_products.rb
ops_manager_ui_drivers-0.14.0 lib/ops_manager_ui_drivers/version15/available_products.rb
ops_manager_ui_drivers-0.13.0 lib/ops_manager_ui_drivers/version15/available_products.rb
ops_manager_ui_drivers-0.12.0 lib/ops_manager_ui_drivers/version15/available_products.rb