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