Can I specify the path to chrome using ChromeOptions in Python?
I got this error: "WebDriverException: Message: executable file 'chromedriver' must be in PATH". The only way I was able to fix it was to manually add one of the chrome locations:
driver = webdriver.Chrome("/Users/anncolvin/.rvm/bin/chromedriver")
After starting Chrome, I got the following error: "You are using an unsupported command line flag: --ignore-certifcate-errors. Suffering and security will suffer."
I would like to try and use the following code to fix this new error, but I don't know how / if I can combine it with manually specifying the location of the chrome lattice?
options = webdriver.ChromeOptions()
options.add_experimental_option("excludeSwitches", ["ignore-
certificate-errors"])
browser = webdriver.Chrome(chrome_options=options)
browser.get("http://google.com/")
+3
source to share