Selenium + Python + Webdriver environment to build full version

Environment to build:

Step 1: Install Python 

 URL: https://www.python.org/downloads/

Python3 recommended to choose a stable release version python3.8.0

Follow the prompts to select the installation --- recommended to choose "Add exe to path", will be automatically added to the Python programming environment variable, if there pip installation package selected, choose to install the recommended pip (python dependent package management tool)

After a successful installation command prompt type python, then return to normal python installed successfully; (Note: if an error, first make sure the installation is complete python, python secondly confirm whether the installation path added to the environment variable)

 

Step 2: Install Python-based packet Selenium

cmd command prompt, change to the directory: python where the disk system: \ Python \ Scripts (Python choose according to their own installation directory Scripts)

Command: pip install selenium to wait for a successful installation

pip show selenium selenium check whether the installation was successful

After a successful installation python found where the disk system: \ Python \ Scripts (selected according to their Python installation directory Scripts), add this directory to the system environment variables

 

The third step: install the browser drive (recommended chromedriver)

Corresponding to different versions of chrome without driver (refer to control the relationship between Baidu to find the latest results)

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

Download the corresponding chromedriver good will extract the files in the directory with the python installation

 

The fourth step: mounting PyCharm (python choose other compilers)

Installation steps omitted, the installation instruction to install, the installation is complete the activation code to activate the Internet to find

 

Step 1: Install Python 

 URL: https://www.python.org/downloads/

Python3 recommended to choose a stable release version python3.8.0

Follow the prompts to select the installation --- recommended to choose "Add exe to path", will be automatically added to the Python programming environment variable, if there pip installation package selected, choose to install the recommended pip (python dependent package management tool)

After a successful installation command prompt type python, then return to normal python installed successfully; (Note: if an error, first make sure the installation is complete python, python secondly confirm whether the installation path added to the environment variable)

 

Step 2: Install Python-based packet Selenium

cmd command prompt, change to the directory: python where the disk system: \ Python \ Scripts (Python choose according to their own installation directory Scripts)

Command: pip install selenium to wait for a successful installation

pip show selenium selenium check whether the installation was successful

After a successful installation python found where the disk system: \ Python \ Scripts (selected according to their Python installation directory Scripts), add this directory to the system environment variables

 

The third step: install the browser drive (recommended chromedriver)

Corresponding to different versions of chrome without driver (refer to control the relationship between Baidu to find the latest results)

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

Download the corresponding chromedriver good will extract the files in the directory with the python installation

 

The fourth step: mounting PyCharm (python choose other compilers)

Installation steps omitted, the installation instruction to install, the installation is complete the activation code to activate the Internet to find

 

Guess you like

Origin www.cnblogs.com/pingfanvbn/p/12012146.html