Splinter doesn't work with Selenium 4.0
Selenium 4.0.0 was just released. With the latest version there are apparently some API changes that Splinter doesn't handle well.
Our issue was TypeError: __init__() got an unexpected keyword argument 'timeout' on https://github.com/cobrateam/splinter/blob/253a6f21699a60651943bac11cf87a24da4d5a81/splinter/driver/webdriver/firefox.py#L71
Here's the offending commit on Selenium: https://github.com/SeleniumHQ/selenium/commit/6428ad79ca21b699837c06e84cdbe3290e4e6c52
I have this issue as well as one of my machines got upgraded without knowing. ~~Any advice on how to workaround much appreciated...I'm not experienced with modifying commit/sources.~~
Update: [deleted due to OS issue / selenium install issue]
Update2: Commenting out the timeout=timeout, line fixed my particular issue.
A workaround is to pin Selenium to a working version in your requirements. E.g. put
selenium<4.0.0
into your requirements.txt file
or
upgrade to splinter>=0.16.0 😄
or upgrade to
splinter>=0.16.0😄
how do I do that? Whenever I run pup upgrade it keeps getting splinter==0.15.0
or upgrade to
splinter>=0.16.0😄how do I do that? Whenever I run pup upgrade it keeps getting splinter==0.15.0
you can try pip install --upgrade splinter or pip install "splinter>=0.16.0"
Same TimeOut issue w splinter==0.16.0, thanks for assisting though.
upgrade to
splinter>=0.16.0
0.16.0 pins selenium<4 so that won't work.
This is unfortunate because file uploads don't work on Selenium 3.x on Python 3.9.
@blaise-io 0.16.0's release pins selenium 3 in order to prevent dependency conflicts, it has nothing to do with getting selenium 4 to work.
Selenium 4 compatibility is coming soon-ish.
0.16.0 pins selenium<4 so that won't work.
Right, the workaround I mentioned is for installing Splinter with Selenium 3.x. Not for making Splinter work with Selenium 4.x. Just to be clear.
Fixed by #963