Windows: python + selenium (2) Open Google Chrome

Selenium in the official website, you can download the latest release of different browser plug-in support files, IE (IEDriverServer.exe), Chrome (chromedriver.exe), note the download time, IE 32-bit and 64-bit download files, chrome currently It is only a 32bit file.

1, first check the computer's Google Chrome browser version, top right "..." Help, About Chrome, my version is 78.0.3904.108

 

 2, chromedriver version download Chrome version number and the corresponding, detailed documentation  https://blog.csdn.net/qq_34562959/article/details/88572333

       Download fast http://chromedriver.storage.googleapis.com/index.html

 

 

 

 3, the download is complete: extract them, I extract the stored address chromedriver.exe is C: \ 360 speed browser download \ chromedriver_win32

4, a blank document is opened, enter the following code with Notepad ++, save as first.py

 5, open cmd window, cd to the path where the first.py, enter the command in cmd: python first.py carriage return, you can see whether to open chrome, Baidu's open effect.

 

 

Guess you like

Origin www.cnblogs.com/test-zlq/p/11968494.html