windows 搭建 selenium + python2.7 自动化测试环境
2017-08-10 11:42
836 查看
windows 搭建 selenium + python2.7 自动化测试环境
setuptools官网
setuptools-36.2.7下载地址
查看selenium版本信息
chromedriver下载地址
chromedriver_win32 (2.30).zip 解压到 python-2.7.13 安装目录下
1. 下载python-2.7.13
Windows x86-64 MSI installer2. 修改windows环境变量
安装完会自动添加环境变量,查看没有需要手动添加C:\LF\python-2.7.13\;C:\LF\python-2.7.13\Scripts;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\
3. 安装setuptools
pip 安装版本查看 C:\Users\win7>pip -V pip 9.0.1 from c:\lf\python-2.7.13\lib\site-packages (python 2.7) C:\Users\win7>
setuptools官网
setuptools-36.2.7下载地址
安装 setuptools-36.2.7-py2.py3-none-any.whl C:\LF>pip install setuptools-36.2.7-py2.py3-none-any.whl Processing c:\lf\setuptools-36.2.7-py2.py3-none-any.whl Installing collected packages: setuptools Found existing installation: setuptools 28.8.0 Uninstalling setuptools-28.8.0: Successfully uninstalled setuptools-28.8.0 Successfully installed setuptools-36.2.7 C:\LF>
4. 安装selenium
C:\LF>pip install selenium Collecting selenium Downloading selenium-3.4.3-py2.py3-none-any.whl (931kB) 35% |███████████▎ | 327kB 355kB/s eta 0:00:02 36% |███████████▋ | 337kB 367kB/s eta 0:00:02 37% |████████████ | 348kB 344kB/s eta 0:00:02 38% |████████████▎ | 358kB 307kB/s eta 0:00:0 39% |████████████▋ | 368kB 279kB/s eta 0:00:0 40% |█████████████ | 378kB 279kB/s eta 0:00:0 41% |█████████████▍ | 389kB 276kB/s eta 0:00: 42% |█████████████▊ | 399kB 282kB/s eta 0:00: 43% |██████████████ | 409kB 268kB/s eta 0:00: 45% |██████████████▍ | 419kB 277kB/s eta 0:00 46% |██████████████▊ | 430kB 288kB/s eta 0:00 47% |███████████████▏ | 440kB 291kB/s eta 0:0 48% |███████████████▌ | 450kB 254kB/s eta 0:0 49% |███████████████▉ 4000 | 460kB 213kB/s eta 0:0 50% |████████████████▏ | 471kB 203kB/s eta 0: 51% |████████████████▌ | 481kB 198kB/s eta 0: 52% |████████████████▉ | 491kB 198kB/s eta 0: 53% |█████████████████▎ | 501kB 190kB/s eta 0 54% |█████████████████▋ | 512kB 193kB/s eta 0 56% |██████████████████ | 522kB 189kB/s eta 0 57% |██████████████████▎ | 532kB 180kB/s eta 58% |██████████████████▋ | 542kB 168kB/s eta 59% |███████████████████ | 552kB 190kB/s eta 60% |███████████████████▍ | 563kB 234kB/s eta 61% |███████████████████▊ | 573kB 258kB/s eta 62% |████████████████████ | 583kB 259kB/s eta 63% |████████████████████▍ | 593kB 253kB/s et 64% |████████████████████▊ | 604kB 252kB/s et 65% |█████████████████████ | 614kB 244kB/s et 67% |█████████████████████▌ | 624kB 237kB/s e 68% |█████████████████████▉ | 634kB 244kB/s e 69% |██████████████████████▏ | 645kB 263kB/s 70% |██████████████████████▌ | 655kB 249kB/s 71% |██████████████████████▉ | 665kB 253kB/s 72% |███████████████████████▏ | 675kB 257kB/s 73% |███████████████████████▋ | 686kB 249kB/s 74% |████████████████████████ | 696kB 259kB/s 75% |████████████████████████▎ | 706kB 249kB/ 76% |████████████████████████▋ | 716kB 268kB/ 78% |█████████████████████████ | 727kB 250kB/ 79% |█████████████████████████▎ | 737kB 247kB 80% |█████████████████████████▊ | 747kB 239kB 81% |██████████████████████████ | 757kB 247kB 82% |██████████████████████████▍ | 768kB 235k 83% |██████████████████████████▊ | 778kB 234k 84% |███████████████████████████ | 788kB 242k 85% |███████████████████████████▍ | 798kB 235 86% |███████████████████████████▉ | 808kB 248 87% |████████████████████████████▏ | 819kB 24 89% |████████████████████████████▌ | 829kB 28 90% |████████████████████████████▉ | 839kB 26 91% |█████████████████████████████▏ | 849kB 2 92% |█████████████████████████████▌ | 860kB 2 93% |██████████████████████████████ | 870kB 2 94% |██████████████████████████████▎ | 880kB 95% |██████████████████████████████▋ | 890kB 96% |███████████████████████████████ | 901kB 97% |███████████████████████████████▎| 911kB 98% |███████████████████████████████▋| 921kB 99% |████████████████████████████████| 931kB 100% |████████████████████████████████| 942k B 132kB/s Installing collected packages: selenium Successfully installed selenium-3.4.3 C:\LF>
查看selenium版本信息
C:\LF> C:\LF>pip show selenium Name: selenium Version: 3.4.3 Summary: Python bindings for Selenium Home-page: https://github.com/SeleniumHQ/selenium/ Author: UNKNOWN Author-email: UNKNOWN License: Apache 2.0 Location: c:\lf\python-2.7.13\lib\site-packages Requires: C:\LF>
5. 安装google浏览器驱动
ChromeDriver v2.30 支持Chrome v58-60chromedriver下载地址
chromedriver_win32 (2.30).zip 解压到 python-2.7.13 安装目录下
相关文章推荐
- 在Windows搭建基于selenium+python的自动化测试环境
- Windows下怎么搭建Python+Selenium的自动化环境
- Selenium + Python 搭建自动化测试环境(三)
- windows 下 android 自动化测试环境搭建(appium+python)
- windows 下 android 自动化测试环境搭建(appium+python)
- windows 搭建selenium2+python2.X自动化环境
- Selenium + Python 搭建自动化测试环境(二)
- windows python3自动化环境 selenium3 chrome(63.0.3239.84)搭建
- 如何搭建selenium+python3.5自动化测试环境
- 基于Selenium2与Python的自动化测试环境配置搭建
- 基于selenium3+python3.6.x+chrome57.x的自动化测试环境搭建
- windows上selenium测试环境搭建——基于python语言
- Jenkins-测试自动化环境搭建(Python+RobotFramework+selenium)
- python+selenium 自动化测试环境搭建
- Windows下怎么搭建Python+Selenium的自动化环境
- windows 下 android 自动化测试环境搭建(appium+python)
- windows 下 android 自动化测试环境搭建(appium+python)
- python2.7+selenium测试环境搭建
- APP自动化(1)——搭建Appium自动化测试平台环境(基于python&android)
- Selenium+Python 自动化测试环境搭建