Sha256: 7d44026f608215f21b5e06229b2ce436efa5b137425824b51e60b5e0032a60aa
Contents?: true
Size: 593 Bytes
Versions: 18
Compression:
Stored size: 593 Bytes
Contents
require_relative '../abstract/abstract_page' class LoginPage < AbstractPage # Actions def login(username, password) username_field.send_keys username password_field.send_keys password login_button.click end private # Elements def username_field @driver.find_element(xpath: "//XCUIElementTypeTextField[@name=\"username\"]") end def password_field @driver.find_element(xpath: "//XCUIElementTypeSecureTextField[@name=\"password\"]") end def login_button @driver.find_elements(xpath: "//XCUIElementTypeOther[@name=\"loginBtn\"]").last end end
Version data entries
18 entries across 18 versions & 1 rubygems