Using webdriver to run in Chrome using Python

I have always used Firefox in webdriver. I want to try using Chrome. I 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 also tried to include the path:

>>> webdriver.Chrome('C:\Python34\chromedriver_win32.zip')

OSError: [WinError 193] %1 is not a valid Win32 application

What is the problem? I am sorry if I am doing something completely wrong or my problem seems difficult to solve. Any help would be appreciated. I also searched all over the internet, but I haven't found anything yet.

Seriously, no one can solve this problem?
+4
source share
1 answer

, , , .exe. , -, , .

+3

Source: https://habr.com/ru/post/1607173/


All Articles