2024-02-19 17:56:22 +01:00

14 lines
366 B
TypeScript

class LoginPage {
usernameInput: string = '#username'
passwordInput: string = '#password'
submitBtn: string = 'button[type=submit]'
submitLogin(username: string, password: string) {
cy.get(this.usernameInput).type(username)
cy.get(this.passwordInput).type(password)
cy.get(this.submitBtn).click()
}
}
export const loginPage = new LoginPage()