The python official website has been updated to version 3.10, and selenium should be downloaded to 4.1.3. Generally, pycharm will come with selenium, pip, and setuptools. If you don’t have it, you must download the corresponding version.
1. Download and install python
1. Download python3.10 (it is best to remember the installation path)
https://www.python.org/getit/
2. After the download is complete, open cmd, enter python, and check whether the download is complete. If the version number appears, the download is complete.
3. If you forget the installation path, enter where python in
cmd. 2. Download pycharm
1. Pycharm is a software that can be downloaded from the official website. The download and installation are very simple without details, and there are many tutorials.
2. After installation, configure a python path. In the fourth part, choose add.
Choose the path where python is downloaded. I forgot the path and entered where python in cmd
3. Download selenium
1. Generally, pycharm comes with it. Open cmd and enter pip show selenium. If the version number appears, selenium has been installed.
2. If there is no version number, download it from the official website https://pypi.python.org/pypi/selenium .
3. After downloading, enter pip install selenium in cmd, and then enter pip show selenium to check whether it is installed.
4. Install the driver of which browser you want to use.
Only Chrome is said here.
1. Download the Chrome driver
from the official website http://npm.taobao.org/mirrors/chromedriver/
The version number should correspond to the version number of the browser. You can get the version number of the browser by checking the help in the browser.
2. After downloading, put it into Scripts under the python path.
5. Install selenium IDE (on Firefox)
If you want to use selenium IDE, you can install it. Selenium IDE is not commonly used, and it is easier to install on Firefox, so the following instructions are for the installation and use on Firefox.
1. First download the Firefox browser and complete the login.
2. Click the menu in the upper right corner and select Extensions and Themes.
3. Search for selenium in the search box
4. Click Add Component
5. After completion, click the icon in the upper right corner to start
6. Open and create a file
7. Click REC to record, and enter the address of the web page to be opened into the box.
8. Export after recording, support multi-language, open with Notepad.