Skip to content

Instantly share code, notes, and snippets.

@angiejones
Created September 11, 2020 19:10
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 angiejones/d8ddff7cc40a3fd9b645c4dace5d0788 to your computer and use it in GitHub Desktop.
Save angiejones/d8ddff7cc40a3fd9b645c4dace5d0788 to your computer and use it in GitHub Desktop.
Playwright - initialize browser and page objects
const { chromium } = require('playwright')
let browser, page
(async () => {
browser = await chromium.launch()
page = await browser.newPage()
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment