I have always used Firefox in webdriver. I want to try using Chrome. I have downloaded chromedriver and included it in the Path variable. However, this code returns an error:
>>> webdriver.Chrome()
selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home
I have also tried including the path:
>>> webdriver.Chrome('C:\Python34\chromedriver_win32.zip')
OSError: [WinError 193] %1 is not a valid Win32 application
What is the problem here? I am sorry if I am doing something completely wrong or my problem seems hard to solve. Any help will be appreciated. I have also searched all over the internet, but I have not found anything yet.
Seriously, can't anybody solve this problem?
It turns out that I had to unzip the folder and instead of typing the path to the folder as an argument, you had to supply the .exe file in the path as well. Maybe it was an intermittent thing, or something that only didn't work when I posted the question.
Using webdriver to run in Chrome with Python