Last active
June 17, 2018 18:29
-
-
Save rodmatola/44c0a72c6325428dd94be38ad7c451c2 to your computer and use it in GitHub Desktop.
Automação na Sprint: Como eu faço (tento)
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
class LoginPage < SitePrism::Page | |
set_url "" | |
element :campo_usuario, "" | |
element :campo_senha, "" | |
element :btn_login, "" | |
end |
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
def pagina_atual_e?(pagina) | |
page.has_title? pagina | |
end |
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
NOMES = { | |
'pagina_principal' => '' | |
} | |
USUARIOS = { | |
'username' => '', | |
'email' => '', | |
'CPF' => '' | |
} | |
SENHAS = { | |
'username' => '', | |
'email' => '', | |
'CPF' => '' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment