windows搭建测试环境

1.安装python  安装地址: https://www.python.org/downloads/windows/

                                   Download Windows x86-64 executable installer

   检查python,在cmd中输 入python命令。

2.安装setuptools和pip,先检查是否自动安装好,在cmd中输 入pip命令。

3.安装selenium,cmd中:pip install selenium

   检查selenium的信息:   pip show selenium

4. 在vs code中安装python,左功能栏扩展区输入python,安装即可。

5.在chrome浏览器中安装chrome driver驱动  

   安装地址: http://npm.taobao.org/mirrors/chromedriver

               http://npm.taobao.org/mirrors/chromedriver/2.29/   chromedriver_win32.zip

   解压加环境变量

5.在firefox浏览器中安装  geckodriver 

  安装地址: https://github.com/mozilla/geckodriver/releases

   解压加环境变量

原文地址:https://www.cnblogs.com/wanglisong/p/6942749.html