alykoshin / selenium-chrome-proxy-plugin

Chrome plugin generator for setting private proxies
MIT License
4 stars 2 forks source link

Plugin cannot base64 decode #3

Open ChrisRoark opened 5 years ago

ChrisRoark commented 5 years ago

Why do I get this?

/node_modules/selenium-webdriver/lib/error.js:585 Uncaught (in promise) WebDriverError: unknown error: cannot process extension #1 from unknown error: cannot base64 decode

I am using the ex_callbacks.js and I get the console log "Plugin ready" and then this error.

agds23 commented 3 years ago

@ChrisRoark Hello, did you solve this?

shion-pro commented 2 years ago

const proxyFile = fs.readFileSync(path.resolve(this.pathname), { encoding: 'base64' }); this.chromeOptions.addExtensions(proxyFile);

Replace this.chromeOptions.addExtensions(this.pathname) (in /lib/index.js) with this, and it will work. This seems to be due to selenium's updates. We have to convert path to absolute.