puppeteer-extra
puppeteer-extra copied to clipboard
[Bug] No way to obtain clean puppeteer instance without any plugin
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:
- Is there a way to obtain an clean puppeteer object without any plugin on it?
- 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.