Sha256: 9c9b26f5d1dc136480355a1bd15902036efe14e52ccbc95cb8dd9147948befa0

Contents?: true

Size: 638 Bytes

Versions: 7

Compression:

Stored size: 638 Bytes

Contents

module OpsManagerUiDrivers
  module Version16
    class IaasConfiguration
      def initialize(browser:)
        @browser = browser
      end

      def open_form
        browser.visit '/'
        browser.click_on 'show-microbosh-configure-action'
        browser.click_on 'show-iaas_configuration-action'
      end

      def save_form
        browser.click_on 'Save'
        browser.expect(browser.page).to browser.have_css('.flash-message.success')
      end

      def set_field(field, value)
        browser.find_field("iaas_configuration[#{field}]").set(value)
      end

      private

      attr_reader :browser
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ops_manager_ui_drivers-1.0.0 lib/ops_manager_ui_drivers/version16/iaas_configuration.rb
ops_manager_ui_drivers-0.16.0 lib/ops_manager_ui_drivers/version16/iaas_configuration.rb
ops_manager_ui_drivers-0.15.2 lib/ops_manager_ui_drivers/version16/iaas_configuration.rb
ops_manager_ui_drivers-0.15.1 lib/ops_manager_ui_drivers/version16/iaas_configuration.rb
ops_manager_ui_drivers-0.15.0 lib/ops_manager_ui_drivers/version16/iaas_configuration.rb
ops_manager_ui_drivers-0.14.1 lib/ops_manager_ui_drivers/version16/iaas_configuration.rb
ops_manager_ui_drivers-0.14.0 lib/ops_manager_ui_drivers/version16/iaas_configuration.rb