Sha256: 0ab9d91539efc186d8acd4f3994dc08974ea57f14de1ca0b483d71a0b58cff01

Contents?: true

Size: 982 Bytes

Versions: 17

Compression:

Stored size: 982 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.wait {
          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

17 entries across 17 versions & 1 rubygems

Version Path
ops_manager_ui_drivers-1.8.3 lib/ops_manager_ui_drivers/version14/product_configuration.rb
ops_manager_ui_drivers-1.8.2 lib/ops_manager_ui_drivers/version14/product_configuration.rb
ops_manager_ui_drivers-1.8.1 lib/ops_manager_ui_drivers/version14/product_configuration.rb
ops_manager_ui_drivers-1.8.0 lib/ops_manager_ui_drivers/version14/product_configuration.rb
ops_manager_ui_drivers-1.7.3 lib/ops_manager_ui_drivers/version14/product_configuration.rb
ops_manager_ui_drivers-1.7.1 lib/ops_manager_ui_drivers/version14/product_configuration.rb
ops_manager_ui_drivers-1.7.0 lib/ops_manager_ui_drivers/version14/product_configuration.rb
ops_manager_ui_drivers-1.6.3 lib/ops_manager_ui_drivers/version14/product_configuration.rb
ops_manager_ui_drivers-1.6.2 lib/ops_manager_ui_drivers/version14/product_configuration.rb
ops_manager_ui_drivers-1.5.1 lib/ops_manager_ui_drivers/version14/product_configuration.rb
ops_manager_ui_drivers-1.6.1 lib/ops_manager_ui_drivers/version14/product_configuration.rb
ops_manager_ui_drivers-1.6.0 lib/ops_manager_ui_drivers/version14/product_configuration.rb
ops_manager_ui_drivers-1.5.0 lib/ops_manager_ui_drivers/version14/product_configuration.rb
ops_manager_ui_drivers-1.4.0 lib/ops_manager_ui_drivers/version14/product_configuration.rb
ops_manager_ui_drivers-1.3.1 lib/ops_manager_ui_drivers/version14/product_configuration.rb
ops_manager_ui_drivers-1.3.0 lib/ops_manager_ui_drivers/version14/product_configuration.rb
ops_manager_ui_drivers-1.2.1 lib/ops_manager_ui_drivers/version14/product_configuration.rb