Skip to content

Instantly share code, notes, and snippets.

@JoneSabino
Created May 21, 2024 12:54
Show Gist options
  • Save JoneSabino/91507cd9481540bf1fb2f9e539f74fc0 to your computer and use it in GitHub Desktop.
Save JoneSabino/91507cd9481540bf1fb2f9e539f74fc0 to your computer and use it in GitHub Desktop.
Select Options By
*** Settings ***
Library Browser
*** Variables ***
${URL} https://seubarriga.wcaquino.me/login
${EMAIL} teste@666.com.br
${PASSWORD} teste
*** Test Cases ***
Login Test
[Documentation] Teste de login utilizando BrowserLibrary
Abrir Página de Login
Inserir Credenciais e Logar
Verificar Login Bem-Sucedido
Acessar Movimentação
[Teardown] Fechar Navegador
*** Keywords ***
Abrir Página de Login
New Browser headless=False
New page ${URL}
Wait For Elements State id=email visible
Inserir Credenciais e Logar
Type Text id=email ${EMAIL}
Type Text id=senha ${PASSWORD}
Click css=.btn.btn-primary
Verificar Login Bem-Sucedido
Wait For Elements State css=a[href="/movimentacao"] visible
Acessar Movimentação
Click css=a[href="/movimentacao"]
Wait For Elements State id=tipo visible
Select Options By id=tipo value REC
Fechar Navegador
Close Browser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment