Sha256: a9104baa2ba759da356587104bc4a32f154004328b35688d72517af60075a574

Contents?: true

Size: 478 Bytes

Versions: 3

Compression:

Stored size: 478 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}"
      end

      def product_added?(product_name)
        browser.visit '/'
        browser.all("#show-configure-#{product_name}-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.4.0 lib/ops_manager_ui_drivers/version14/available_products.rb
ops_manager_ui_drivers-0.3.0 lib/ops_manager_ui_drivers/version14/available_products.rb
ops_manager_ui_drivers-0.2.0 lib/ops_manager_ui_drivers/version14/available_products.rb