puppeteer-extra icon indicating copy to clipboard operation
puppeteer-extra copied to clipboard

[Bug] No way to obtain clean puppeteer instance without any plugin

Open marcusdiy opened this issue 2 years ago • 0 comments

Hi there. Basically I'm launching different puppeteer browsers with different settings. In this case I'm using puppeteer-extra-plugin-proxy. When I launch the first browser and set the proxy the next browser will still use the previous proxy settings witch is an undesired effect. So now I have two questions:

  1. Is there a way to obtain an clean puppeteer object without any plugin on it?
  2. Is there a way to unUse the plugin, to remove the plugin from the instance
const puppeteer = require('puppeteer-extra');
const pluginProxy = require('puppeteer-extra-plugin-proxy');
puppeteer.use(pluginProxy({address: '123.123.123.123',  port: 1001}));
let browser1 = puppeteer.launch({ headless: false })

const puppeteer2 = require('puppeteer-extra');
let browser2 = puppeteer2.launch({ headless: false })

Even if I didn't specify that puppeteer2 should use a proxy. It will still do it.

marcusdiy avatar Sep 06 '22 22:09 marcusdiy