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

Please add functionality to change binary location #67

Open
kevin6shah opened this issue Mar 4, 2021 · 1 comment
Open

Please add functionality to change binary location #67

kevin6shah opened this issue Mar 4, 2021 · 1 comment

Comments

@kevin6shah
Copy link

I love webbot and the functionality it provides on top of selenium. However, there are many times when I wish I could specify a certain binary location for the webbot driver.

In selenium, you can do this to specify a binary location:

from selenium import webdriver

options = webdriver.ChromeOptions()
options.binary_location = "path/to/google_chrome_binary"

It would be nice to add a parameter in the constructor that lets you customize the path where the Google Chrome binary is located. This can be useful for deploying applications on online servers with webbot that won't always have app locations as specified by default for an operating system.

An additional nice feature could also be to allow users to set a custom executable path for the chromedriver as well.
driver = webdriver.Chrome(executable_path="path/to/chromedriver", chrome_options=options)

@hoggatt
Copy link

hoggatt commented May 8, 2021

I did add this to a pull request #59 a while back.
Not sure it has been released / pulled into the project yet, but you can copy the changes over locally if you want this functionality.

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

No branches or pull requests

2 participants