Created
September 16, 2020 09:13
-
-
Save atthaboon/7ca0734e6a86dda6fa6a86f0030091c1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** 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