Sulenium installation steps

python Language,selenium Automation environment construction

1. Installationselenium, choose one of the two ways to install

1.1 UseDOS Command to enterpython installation directory, span>and then executepip install -U selenium Network installation

Selenium

share picture

2.1 download the installation package first https://pypi.python.org/pypi/selenium#downloads,After downloading, unzip the directory,

then use cmd < span style="font-family: 宋体;">Enter the unzipped directory and use the commandPython setup.py install InstallSelenium

2. Create a new project and install it through the installation package management interface of pycharm

share picture

3. CheckFirefoxGoogle Chrome The driver version corresponding to the browser version,

The latest version for Google and Firefox IE The version remains unchanged span>

share picture

4. Download the corresponding driver and put it in python Installation directoryC:\Python36 or the browser corresponding installation Directory

Browser Drive Google(chromedriver.exe) Firefox(geckodriver.exe) IE(IEDriverServer.exe)

share picture

5 create a new one Empty project script and enter the corresponding code

share picture

6. Enter the specified page to complete

Leave a Comment

Your email address will not be published.