-
-
Notifications
You must be signed in to change notification settings - Fork 460
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
Allow specifying browser binary path #646
Conversation
@SergeyPirogov please review my PR. Let me know if any changes are required from my side. |
@SergeyPirogov did you have a chance to review my PR yet? |
@aleksandr-kotlyar Can you please review this PR? |
@sohang3112 good luck. I have had a PR open since Oct 9 with no feedback. 😞 |
@MarcelWilson Last merged PR seems to be in September. Maybe the repo maintainers are taking a break (hopefully temporary!) |
@sohang3112 you might have more luck switching to selenium's new built-in webdriver manager (functionally equivalent to this library but less buggy in my experience) https://www.selenium.dev/documentation/selenium_manager/#automated-browser-management switching my project to it was trivial chilli-axe/mpc-autofill#192 |
@ndepaola Thanks - didn't know about this! |
@sohang3112 this idea is awesome! Thank you for your time and this PR! Sorry but I have no time to check it, can you prove it works by adding some tests please? And also prove that no regression comes with it? |
@aleksandr-kotlyar Where should I put the tests - in
How should I do that?? |
Hello @sohang3112! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2023-12-02 05:44:23 UTC |
To /tests/ only would be enough. |
Hi. I'm closing this Pull Request, as there's already a way to do what I wanted which I didn't know before: from webdriver_manager.firefox import GeckoDriverManager
from webdriver_manager.core.utils import read_version_from_cmd
from webdriver_manager.core.os_manager import PATTERN
firefox_path = "/usr/bin/firefox-bin-custom"
version = read_version_from_cmd(f"{firefox_path} --version", PATTERN["firefox"])
driver_binary = GeckoDriverManager(version=version).install() |
Fixes Issue 645.
Add a
binary_path
option to allDriverManager
classes to manually specify location of browser. This is useful when the browser is installed in a non-standard location.Example test script using Chrome: