Skip to content

Instantly share code, notes, and snippets.

@atthaboon
Created July 12, 2020 11:21
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/d18d02d8088b85ac4612703752d656ae to your computer and use it in GitHub Desktop.
Save atthaboon/d18d02d8088b85ac4612703752d656ae to your computer and use it in GitHub Desktop.
robotframework-puppeteer fix flaky test
*** Settings ***
Library PuppeteerLibrary
*** Test Cases ***
Demo puppeteer solve flaky test
Open Browser http://127.0.0.1:7272/ajax-demo.html browser=chrome
Maximize Browser Window
Input Text id=idcard 123456789
Run Async Keywords
... Click Element id=verify AND
... Wait Until Element Is Visible id=loading
Wait Until Element Is Hidden id=loading
Click Element id=submit
Wait Until Page Contains Login succeeded
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment