Created
September 15, 2020 00:02
-
-
Save atthaboon/2631f9e868869b5534ae49fa1071d180 to your computer and use it in GitHub Desktop.
Demo handle browser
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 | |
Suite Teardown Close Puppeteer | |
*** Test Cases *** | |
Switch to new browser | |
&{options} = create dictionary headless=${False} | |
Open browser http://127.0.0.1:7272/basic-html-elements.html options=${options} | |
Run Async Keywords | |
... Wait For New Window Open AND | |
... Click Element id=open-new-tab | |
Switch Window NEW | |
Wait Until Page Contains Element id=exampleInputEmail1 | |
Switch Window title=Basic HTML Elements | |
Wait Until Page Contains Element id=open-new-tab | |
Close All Browser |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment