Chromeoptions does not work in new version
Last day, I update my splinter and selenium and find out that it does not work when I pass chromeoptions to driver. Is it a bug or something? I did not change anything except updating my splinter and selenium to the newest version.
here is my test code:
from splinter import Browser from selenium.webdriver.chrome.options import Options chrome_options = Options() chrome_options.add_argument("--user-data-dir=mypath") driver = Browser('chrome',options=chrome_options)
my path is C:\Users\Myname\AppData\Local\Google\Chrome\User Data
This code looks fine. What is the version of splinter and chromedriver?
This code looks fine. What is the version of splinter and chromedriver? splinter (0.10.0) & selenium (3.141.0), it confuses me for days.
@wurenbuxiao what is the chromedriver version? You can see the version using: $ chromedriver --version
ChromeDriver 2.28.455520 Chrome 56.0.2924.87
Try to update your chrome and chromedriver
It works! Thanks a lot, and so sorry for bothering, I should update the chrome in the same when i update the selenium and splinter.