Skip to content

Instantly share code, notes, and snippets.

@atthaboon
Created September 16, 2020 09:13
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/7ca0734e6a86dda6fa6a86f0030091c1 to your computer and use it in GitHub Desktop.
Save atthaboon/7ca0734e6a86dda6fa6a86f0030091c1 to your computer and use it in GitHub Desktop.
*** Settings ***
Library PuppeteerLibrary
Test Teardown Close All Browser
Suite Teardown Close Puppeteer
*** Test Cases ***
Accept alert
&{options} = create dictionary headless=${False}
Open browser http://127.0.0.1:7272/basic-html-elements.html options=${options}
Run Async Keywords
... Handle Alert ACCEPT AND
... Click Button id=alert_confirm
Click Element id:get_ajax
Dismiss alert
&{options} = create dictionary headless=${False}
Open browser http://127.0.0.1:7272/basic-html-elements.html options=${options}
Run Async Keywords
... Handle Alert DISMISS AND
... Click Button id=alert_confirm
Click Element id:get_ajax
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment