Sha256: e53600393351ec850371c1cd5a6d3fd79af7bb03771b8cf5abda0b3c68adf00d

Contents?: true

Size: 1.29 KB

Versions: 47

Compression:

Stored size: 1.29 KB

Contents

require 'ops_manager_ui_drivers/version17/available_products'

module OpsManagerUiDrivers
  module Version18
    class AvailableProducts < Version17::AvailableProducts
      def add_product_to_install(product_name, product_version=nil)
        browser.visit '/'
        if product_version
          browser.click_on "add-#{product_name}-#{product_version}"
        else
          browser.find(:css, "[id^='add-#{product_name}-']").click
        end
      end

      def delete_unused_product(product_name, product_version=nil)
        browser.visit '/'
        disable_css_transitions!
        if product_version
          browser.click_on "delete-#{product_name}-#{product_version}"
        else
          browser.find(:css, "[id^='delete-#{product_name}-']").click
        end
        browser.find('#delete_unused_products').trigger('click')
      end

      def delete_unused_products
        browser.visit '/'
        disable_css_transitions!
        browser.find('#delete_unused_products_modal').trigger('click')
        browser.find('#delete_unused_products').trigger('click')
      end

      def product_available?(product_name, product_version)
        browser.visit '/'
        browser.all("li.#{product_name} input#product_version[value='#{product_version}']", {visible: false}).any?
      end
    end
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
ops_manager_ui_drivers-2.42.0 lib/ops_manager_ui_drivers/version18/available_products.rb
ops_manager_ui_drivers-2.41.0 lib/ops_manager_ui_drivers/version18/available_products.rb
ops_manager_ui_drivers-2.40.1 lib/ops_manager_ui_drivers/version18/available_products.rb
ops_manager_ui_drivers-2.40.0 lib/ops_manager_ui_drivers/version18/available_products.rb
ops_manager_ui_drivers-2.39.0 lib/ops_manager_ui_drivers/version18/available_products.rb
ops_manager_ui_drivers-2.38.0 lib/ops_manager_ui_drivers/version18/available_products.rb
ops_manager_ui_drivers-2.37.0 lib/ops_manager_ui_drivers/version18/available_products.rb
ops_manager_ui_drivers-2.36.0 lib/ops_manager_ui_drivers/version18/available_products.rb
ops_manager_ui_drivers-2.35.2 lib/ops_manager_ui_drivers/version18/available_products.rb
ops_manager_ui_drivers-2.35.1 lib/ops_manager_ui_drivers/version18/available_products.rb
ops_manager_ui_drivers-2.35.0 lib/ops_manager_ui_drivers/version18/available_products.rb
ops_manager_ui_drivers-2.34.1 lib/ops_manager_ui_drivers/version18/available_products.rb
ops_manager_ui_drivers-2.34.0 lib/ops_manager_ui_drivers/version18/available_products.rb
ops_manager_ui_drivers-2.33.1 lib/ops_manager_ui_drivers/version18/available_products.rb
ops_manager_ui_drivers-2.33.0 lib/ops_manager_ui_drivers/version18/available_products.rb
ops_manager_ui_drivers-2.32.1 lib/ops_manager_ui_drivers/version18/available_products.rb
ops_manager_ui_drivers-2.32.0 lib/ops_manager_ui_drivers/version18/available_products.rb
ops_manager_ui_drivers-2.31.3 lib/ops_manager_ui_drivers/version18/available_products.rb
ops_manager_ui_drivers-2.31.2 lib/ops_manager_ui_drivers/version18/available_products.rb
ops_manager_ui_drivers-2.31.1 lib/ops_manager_ui_drivers/version18/available_products.rb