sulenium mounting step

python language, the Selenium automation environment to build

1. Installation Selenium , two ways of mounting the election

1.1 with DOS enter the command python installation directory , and then execute pip install -U selenium networking installation

Selenium

2.1 to download the installation package https://pypi.python.org/pypi/selenium#downloads, after a good download, unzip directory,

And then use cmd into the extracted directory, use the command Python setup.py install installation Selenium

2. New Project, through pycharm installation package management interface installation

 

3. check Firefox , Google Chrome browser version corresponding drive version ,

Google browser, Firefox with the latest version of IE remains the same version

4. Download the corresponding drive, put python installation directory C: \ Python36 the browser or the corresponding installation directory

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

5 Create a new empty script item and enter the corresponding code

6. Go to a specific page is completed

 

Guess you like

Origin www.cnblogs.com/nishizhu/p/11728143.html