webbot
webbot copied to clipboard
Please add functionality to change binary location
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)
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.