-
Notifications
You must be signed in to change notification settings - Fork 977
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an option to specify the Chromium browser binary used #1709
Comments
Released in |
hello @mdmintz! first, thank you for the hard work on seleniumbase, it is much appreciated. I've searched through closed issues on setting binary location and WSL, but haven't found anything too similar. I recognize this could fully be user error, but here goes. I'm using: Running the following: results in the following error:
It appears that sbase rightfully recognizes that I'm running code in Linux, and thus does not consider the binary location in Windows valid since it does not match the constants, but shouldn't setting Both
are also set to PATH, and appear when running From searching through other issues, this function doesn't return anything: Any insight or troubleshooting is appreciated, thanks again! |
Hello @mingatupturndotorg, you mentioned that you're running on
For a Linux system, those are the supported binaries to choose from. Using a different one would lead to errors, so that is prevented during binary selection. |
Thanks @mdmintz, that's a fair response. To clarify my use case or expected behavior - when using undetected-chromedriver, I could run the following script in Ubuntu with WSL:
and a headful Chrome installed in Windows would appear. Is that behavior possible with sbase? |
@mingatupturndotorg I had not considered WSL (Windows Subsystem for Linux) - (https://ubuntu.com/wsl). |
Thanks! Would a temporary fix be to add |
@mingatupturndotorg Yes, try that. |
Add an option to specify the Chromium browser binary used
(For the browser executable, NOT the driver)
Supports the two main Chromium browsers: Chrome and Edge.
Example:
pytest test_demo_site.py --binary-location="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
Also as an option for other Syntax Formats:
The text was updated successfully, but these errors were encountered: