Skip to content

Instantly share code, notes, and snippets.

@atthaboon
Created September 15, 2020 00:02
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/2631f9e868869b5534ae49fa1071d180 to your computer and use it in GitHub Desktop.
Save atthaboon/2631f9e868869b5534ae49fa1071d180 to your computer and use it in GitHub Desktop.
Demo handle browser
*** 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