Sha256: 7aa4072f26c662bb8e0389231ea8403470e2db78a7c19f6f0cccb42d41b6c563

Contents?: true

Size: 1.1 KB

Versions: 102

Compression:

Stored size: 1.1 KB

Contents

module OpsManagerUiDrivers
  module Version16
    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)
        Version16::ProductForm.new(browser: browser, product_name: product_name, form_name: form_name)
      end

      def product_errands
        Version16::ProductErrands.new(browser: browser, product_name: product_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.42.0 lib/ops_manager_ui_drivers/version16/product_configuration.rb
ops_manager_ui_drivers-2.41.0 lib/ops_manager_ui_drivers/version16/product_configuration.rb
ops_manager_ui_drivers-2.40.1 lib/ops_manager_ui_drivers/version16/product_configuration.rb
ops_manager_ui_drivers-2.40.0 lib/ops_manager_ui_drivers/version16/product_configuration.rb
ops_manager_ui_drivers-2.39.0 lib/ops_manager_ui_drivers/version16/product_configuration.rb
ops_manager_ui_drivers-2.38.0 lib/ops_manager_ui_drivers/version16/product_configuration.rb
ops_manager_ui_drivers-2.37.0 lib/ops_manager_ui_drivers/version16/product_configuration.rb
ops_manager_ui_drivers-2.36.0 lib/ops_manager_ui_drivers/version16/product_configuration.rb
ops_manager_ui_drivers-2.35.2 lib/ops_manager_ui_drivers/version16/product_configuration.rb
ops_manager_ui_drivers-2.35.1 lib/ops_manager_ui_drivers/version16/product_configuration.rb
ops_manager_ui_drivers-2.35.0 lib/ops_manager_ui_drivers/version16/product_configuration.rb
ops_manager_ui_drivers-2.34.1 lib/ops_manager_ui_drivers/version16/product_configuration.rb
ops_manager_ui_drivers-2.34.0 lib/ops_manager_ui_drivers/version16/product_configuration.rb
ops_manager_ui_drivers-2.33.1 lib/ops_manager_ui_drivers/version16/product_configuration.rb
ops_manager_ui_drivers-2.33.0 lib/ops_manager_ui_drivers/version16/product_configuration.rb
ops_manager_ui_drivers-2.32.1 lib/ops_manager_ui_drivers/version16/product_configuration.rb
ops_manager_ui_drivers-2.32.0 lib/ops_manager_ui_drivers/version16/product_configuration.rb
ops_manager_ui_drivers-2.31.3 lib/ops_manager_ui_drivers/version16/product_configuration.rb
ops_manager_ui_drivers-2.31.2 lib/ops_manager_ui_drivers/version16/product_configuration.rb
ops_manager_ui_drivers-2.31.1 lib/ops_manager_ui_drivers/version16/product_configuration.rb