Sha256: 03166e81665a9bb694d465c3b654e99298b76a3f2dbbd588e01f09bb98b1bfb9

Contents?: true

Size: 513 Bytes

Versions: 29

Compression:

Stored size: 513 Bytes

Contents

require_relative '../abstract/page'

class Login < Page

  def url(_page)
    'index.php?rt=account/login'
  end

  # Actions

  def login(username, password)
    username_field.set username
    password_field.set password
    login_button.click
  end

  private

  # Elements

  def username_field
    browser.text_field(id: 'loginFrm_loginname')
  end

  def password_field
    browser.text_field(id: 'loginFrm_password')
  end

  def login_button
    browser.button(xpath: "//button[@title='Login']")
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
ruby_raider-0.9.1 lib/generators/automation/templates/partials/watir_login.tt
ruby_raider-0.9.0 lib/generators/automation/templates/partials/watir_login.tt
ruby_raider-0.8.9 lib/generators/automation/templates/partials/watir_login.tt
ruby_raider-0.8.8 lib/generators/automation/templates/partials/watir_login.tt
ruby_raider-0.8.6 lib/generators/automation/templates/partials/watir_login.tt
ruby_raider-0.8.5 lib/generators/automation/templates/partials/watir_login.tt
ruby_raider-0.8.3 lib/generators/automation/templates/partials/watir_login.tt
ruby_raider-0.8.2 lib/generators/automation/templates/partials/watir_login.tt
ruby_raider-0.8.1 lib/generators/automation/templates/partials/watir_login.tt