Skip to content
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 location #645

Closed
sohang3112 opened this issue Nov 17, 2023 · 2 comments
Closed

Allow specifying browser binary location #645

sohang3112 opened this issue Nov 17, 2023 · 2 comments

Comments

@sohang3112
Copy link

Chrome is installed at a non-standard location in my system. How can I specify this location while installing chromedriver using ChromeDriverManager().install()?

@sohang3112
Copy link
Author

@SergeyPirogov Please review & merge my linked PR that adds this feature.

@sohang3112
Copy link
Author

Closing this issue - there's already a way to do this that I didn't know about 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()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant