-
-
Save angiejones/d8ddff7cc40a3fd9b645c4dace5d0788 to your computer and use it in GitHub Desktop.
Playwright - initialize browser and page objects
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
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