webbot icon indicating copy to clipboard operation
webbot copied to clipboard

Please add functionality to change binary location

Open kevin6shah opened this issue 3 years ago • 1 comments

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)

kevin6shah avatar Mar 04 '21 23:03 kevin6shah

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.

hoggatt avatar May 08 '21 00:05 hoggatt