Created
March 10, 2025 08:37
-
-
Save rodrigojmartin/b83345f43bc07408ff71524169adde3d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// pages/homepage.js | |
const { By } = require('selenium-webdriver'); | |
class HomePage { | |
constructor(driver) { | |
this.driver = driver; | |
} | |
async open(url) { | |
await this.driver.get(url); | |
} | |
async clickLoginButton() { | |
const loginButton = await this.driver.findElement(By.id('login')); | |
await loginButton.click(); | |
} | |
} | |
module.exports = HomePage; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment