Sha256: 3260a73cd00f26c496ecab86d096a5fd6175ec06d13fd6b7f00da5a266ed7308

Contents?: true

Size: 481 Bytes

Versions: 5

Compression:

Stored size: 481 Bytes

Contents

module OpsManagerUiDrivers
  module Version12
    class Login
      def initialize(browser:)
        @browser = browser
      end

      def login(user:, password:)
        open_login_page
        browser.fill_in 'login[user_name]', with: user
        browser.fill_in 'login[password]', with: password
        browser.click_on 'login-action'
      end

      private

      attr_reader :browser

      def open_login_page
        browser.visit '/login'
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ops_manager_ui_drivers-0.5.0 lib/ops_manager_ui_drivers/version12/login.rb
ops_manager_ui_drivers-0.4.1 lib/ops_manager_ui_drivers/version12/login.rb
ops_manager_ui_drivers-0.4.0 lib/ops_manager_ui_drivers/version12/login.rb
ops_manager_ui_drivers-0.3.0 lib/ops_manager_ui_drivers/version12/login.rb
ops_manager_ui_drivers-0.2.0 lib/ops_manager_ui_drivers/version12/login.rb