splinter icon indicating copy to clipboard operation
splinter copied to clipboard

Chromeoptions does not work in new version

Open wurenbuxiao opened this issue 7 years ago • 7 comments

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)

wurenbuxiao avatar Dec 26 '18 09:12 wurenbuxiao

my path is C:\Users\Myname\AppData\Local\Google\Chrome\User Data

wurenbuxiao avatar Dec 26 '18 10:12 wurenbuxiao

This code looks fine. What is the version of splinter and chromedriver?

andrewsmedina avatar Dec 28 '18 19:12 andrewsmedina

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 avatar Dec 29 '18 02:12 wurenbuxiao

@wurenbuxiao what is the chromedriver version? You can see the version using: $ chromedriver --version

andrewsmedina avatar Dec 29 '18 22:12 andrewsmedina

ChromeDriver 2.28.455520 Chrome 56.0.2924.87

wurenbuxiao avatar Jan 02 '19 09:01 wurenbuxiao

Try to update your chrome and chromedriver

andrewsmedina avatar Jan 02 '19 13:01 andrewsmedina

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.

wurenbuxiao avatar Jan 03 '19 03:01 wurenbuxiao