Instantly share code, notes, and snippets.

Embed
What would you like to do?
Classe 'login' com o método 'fazerLogin'.
'use strict'
class Login {
constructor() {
// Elementos para login
this.Email = element(by.name('usr_log'));
this.Senha = element(by.name('usr_sen'));
this.EntrarButton = element(by.css('[value="Entrar"]'));
}
fazerLogin(email, senha) {
this.Email.sendKeys(email);
this.Senha.sendKeys(senha);
this.EntrarButton.click();
}
}
module.exports = Login;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment