'Where does my code go wrong, elementary Python+Selenium+chromedriver issue
My project requires selenium and after quite a bit of struggling I kept failing to correctly set up selenium/chromedriver on my PC and the code My initial code kept coming back with a 'DeprecationWarning: executable_path has been deprecated, please pass in a Service object'. Result of my code
So, I copied code from a similar question's answer and it worked as expected! Working solution
Could someone please explain why my code does not work, and why his/hers does?
Solution 1:[1]
I believe you should add .exe to your path variable, so it would be:
path = '/User/iop/Downloads/chromedriver.exe'
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | WibeMan |
