Created
May 1, 2019 13:33
-
-
Save jjason685/79bf37acba80a2c1f0af4f6c7a1cdf37 to your computer and use it in GitHub Desktop.
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 puppeteer = require('puppeteer-extra'); | |
const pluginStealth = require('puppeteer-extra-plugin-stealth'); | |
(async () => { | |
puppeteer.use(pluginStealth()) | |
const browser = await puppeteer.launch(); | |
const context1 = await browser.createIncognitoBrowserContext(); | |
const context2 = await browser.createIncognitoBrowserContext(); | |
const page1 = await context1.newPage(); | |
const page2 = await context2.newPage(); | |
await page1.goto('http://localhost:3000'); | |
await page2.goto('http://localhost:3000'); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment