Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Use `addExtra` to create a fresh and independent instance
- import playwright from 'playwright'
- import { addExtra } from 'playwright-extra'
- const chromium1 = addExtra(playwright.chromium)
- const chromium2 = addExtra(playwright.chromium)
- chromium1.use(onePlugin)
- chromium2.use(anotherPlugin)
- // chromium1 and chromium2 are independent
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement