Created
August 14, 2020 11:38
-
-
Save atthaboon/edb0d1d021d6571aac7d4f7d57a65b28 to your computer and use it in GitHub Desktop.
puppeteer-browser-control.robot
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 | |
*** Variables *** | |
&{options} headless=${False} | |
*** Test Cases *** | |
Demo script 01 | |
[Teardown] Close All Browser | |
Open Browser https://qahive.github.io/robotframework-puppeteer.github.io/ browser=chrome options=${options} | |
Run Async Keywords | |
... Click Element css=a[href="https://qahive.github.io/robotframework-puppeteer/PuppeteerLibrary.html"] AND | |
... Wait For New Window Open | |
Switch Window NEW | |
Wait Until Page Contains Library version | |
Demo script 02 | |
[Teardown] Close All Browser | |
Open Browser https://qahive.github.io/robotframework-puppeteer.github.io/ browser=chrome options=${options} | |
Click Element css=a[href="#team"] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment