Skip to content

Instantly share code, notes, and snippets.

@atthaboon
Created September 14, 2020 00:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atthaboon/5ab1565fb847e6e64eddc952bcbe788f to your computer and use it in GitHub Desktop.
Save atthaboon/5ab1565fb847e6e64eddc952bcbe788f to your computer and use it in GitHub Desktop.
*** Settings ***
Library PuppeteerLibrary
*** Test Cases ***
Submit login form
&{options} = create dictionary headless=${False}
Open browser http://127.0.0.1:7272/login-form-example.html options=${options}
Input Text id=exampleInputEmail1 demo@qahive.com
Input Text id=exampleInputPassword1 123456789
Click Element id=exampleCheck1
Run Async Keywords
... Wait For New Window Open AND
... Click Element css=button[type="submit"]
Switch Window NEW
Wait Until Page Contains Login succeeded
Close Browser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment