Skip to content

Instantly share code, notes, and snippets.

@jjason685
Created May 1, 2019 13:33
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 jjason685/79bf37acba80a2c1f0af4f6c7a1cdf37 to your computer and use it in GitHub Desktop.
Save jjason685/79bf37acba80a2c1f0af4f6c7a1cdf37 to your computer and use it in GitHub Desktop.
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