Skip to content

Instantly share code, notes, and snippets.

@atthaboon
Created August 14, 2020 11:38
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/edb0d1d021d6571aac7d4f7d57a65b28 to your computer and use it in GitHub Desktop.
Save atthaboon/edb0d1d021d6571aac7d4f7d57a65b28 to your computer and use it in GitHub Desktop.
puppeteer-browser-control.robot
*** 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