Open ChrisRoark opened 5 years ago
@ChrisRoark Hello, did you solve this?
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.
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.