Closed gemini0x2 closed 10 months ago
Adding the driverPath directly in webdriver-chromium.js
using the setChromeService
fixed the issue for me in Linux Ubuntu.
const driverPath = '/usr/bin/chromedriver';
builder.setChromeService(new chrome.ServiceBuilder(driverPath));
Thanks, that fixed it.
I was not able to repoduce your issue on Ubuntu 22.04. On my machine, the executable of chromium is also located in /usr/bin
(installed via apt
). I installed the driver by running sudo apt install chromium-chromedriver
. Then, I can simply run for example ./single-file https://example.com --back-end=webdriver-chromium
without needing to pass any additional parameters.
However, I fixed the support of --web-driver-executable-path
with an implementation based on the fix proposed by @gspinoza.
@gildas-lormeau thanks for adding the fix.
@Gavriik You're welcome :)
It appears that my
npm
automatically updated all my packages includingsingle-file-cli
, because after this event my args.js got overwritten and I lost all my configurations :( [it would be great if there was a flag option so the user can provide path to our own custom args.js that way we don't have to mess with the original, which can get overwritten after update]Anyways, the problem now is that for some reason now I'm getting "no chrome binary" Error! I have tried uninstalling and installing both chromedriver and chromium-browser, but no luck. I'm not sure if the issue is with selenium or single-file-cli is not setting the paths correctly. I think selenium 4.11.0 should support Chromium 116, but I'm not completely sure.
Here is what I have:
Note: Both
chromedriver
andchromium-browser
files are present and located in/usr/bin/
chromedriver --versionChromeDriver 116.0.5845.96
chromium-browser --versionChromium 116.0.5845.96 snap
my args.js
LOGS: