while running a selenium script, webdriver.py always throwing exception like :
File "C:\Python27\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 67, in __init__
File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 87, in __init__
File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 141, in start_session
even if I already used the correct chromedriver location:
browser = webdriver.Chrome("C:/Python27/chromedriver.exe")
the error still showed up.
After several hours looking for solution, I solved the problem by using the latest version of chromedriver.
At the moment I wrote this article, my current chrome version is v54, so I used chromedriver v2.25 which the release notes stated it supports Chrome v53-55.
Hope this help.
I tested on both mac OS and windows and it worked.