Skip to content

Instantly share code, notes, and snippets.

@atthaboon
Created September 9, 2020 00:05
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/686683d9ed763c23f189b18e4ac34690 to your computer and use it in GitHub Desktop.
Save atthaboon/686683d9ed763c23f189b18e4ac34690 to your computer and use it in GitHub Desktop.
Puppeteer: Solve animation flaky test
*** Settings ***
Library PuppeteerLibrary
*** Test Cases ***
Demo solve animation flaky test
&{options} = create dictionary headless=${False}
Open Browser https://getbootstrap.com/docs/4.0/components/modal/ options=${options}
Run Async Keywords
... Click Element css=button[data-target="#exampleModalLive"] AND
... Wait Until Element Is Visible id=exampleModalLive
Wait Until Element Finished Animating css=#exampleModalLive button[data-dismiss="modal"]
Click Element css=#exampleModalLive button[data-dismiss="modal"]
Wait Until Element Is Hidden id=exampleModalLive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment