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