Sha256: 2f3bdc06a8be63d1f9259d7082e9cd7e436e2b1e9e9560cc4cabfb68a1aac0d2

Contents?: true

Size: 1003 Bytes

Versions: 102

Compression:

Stored size: 1003 Bytes

Contents

module OpsManagerUiDrivers
  module Version14
    class ProductConfiguration
      attr_reader :product_name

      def initialize(browser:, product_name:)
        @browser      = browser
        @product_name = product_name
      end

      def upload_stemcell(stemcell_file_path)
        visit_product_page
        browser.click_on "show-#{product_name}-stemcell-assignment-action"
        browser.attach_file('product_stemcell[file]', stemcell_file_path, {visible: false})
        browser.poll_up_to_times(20) {
          browser.assert_text("Stemcell '#{File.basename(stemcell_file_path)}' has been uploaded successfully.")
        }
      end

      def product_form(form_name)
        Version14::ProductForm.new(browser: browser, product_name: product_name, form_name: form_name)
      end

      private

      attr_reader :browser, :product_name

      def visit_product_page
        browser.visit '/'
        browser.click_on "show-#{product_name}-configure-action"
      end
    end
  end
end

Version data entries

102 entries across 102 versions & 1 rubygems

Version Path
ops_manager_ui_drivers-2.17.0 lib/ops_manager_ui_drivers/version14/product_configuration.rb
ops_manager_ui_drivers-2.16.0 lib/ops_manager_ui_drivers/version14/product_configuration.rb
ops_manager_ui_drivers-2.15.0 lib/ops_manager_ui_drivers/version14/product_configuration.rb
ops_manager_ui_drivers-2.14.3 lib/ops_manager_ui_drivers/version14/product_configuration.rb
ops_manager_ui_drivers-2.14.2 lib/ops_manager_ui_drivers/version14/product_configuration.rb
ops_manager_ui_drivers-2.14.1 lib/ops_manager_ui_drivers/version14/product_configuration.rb
ops_manager_ui_drivers-2.14.0 lib/ops_manager_ui_drivers/version14/product_configuration.rb
ops_manager_ui_drivers-2.13.1 lib/ops_manager_ui_drivers/version14/product_configuration.rb
ops_manager_ui_drivers-2.13.0 lib/ops_manager_ui_drivers/version14/product_configuration.rb
ops_manager_ui_drivers-2.12.0 lib/ops_manager_ui_drivers/version14/product_configuration.rb
ops_manager_ui_drivers-2.11.0 lib/ops_manager_ui_drivers/version14/product_configuration.rb
ops_manager_ui_drivers-2.10.9 lib/ops_manager_ui_drivers/version14/product_configuration.rb
ops_manager_ui_drivers-2.10.8 lib/ops_manager_ui_drivers/version14/product_configuration.rb
ops_manager_ui_drivers-2.10.7 lib/ops_manager_ui_drivers/version14/product_configuration.rb
ops_manager_ui_drivers-2.10.6 lib/ops_manager_ui_drivers/version14/product_configuration.rb
ops_manager_ui_drivers-2.10.5 lib/ops_manager_ui_drivers/version14/product_configuration.rb
ops_manager_ui_drivers-2.10.4 lib/ops_manager_ui_drivers/version14/product_configuration.rb
ops_manager_ui_drivers-2.10.3 lib/ops_manager_ui_drivers/version14/product_configuration.rb
ops_manager_ui_drivers-2.10.2 lib/ops_manager_ui_drivers/version14/product_configuration.rb
ops_manager_ui_drivers-2.10.1 lib/ops_manager_ui_drivers/version14/product_configuration.rb