ningruolily

导航

2013年9月26日 #

seleniu+python+chrome的调试

摘要: 1、下载chrome,下载chrome driver,下载地址:http://code.google.com/p/chromedriver/downloads/list2、安装chrome,默认路径:C:\Program Files\Google\Chrome\Application3、将下载好的chrome driver放到C:\Program Files\Google\Chrome\Application目录下4、设置系统环境变量,在path目录中增加路径:C:\Program Files\Google\Chrome\Application新建python脚本:from selenium 阅读全文

posted @ 2013-09-26 15:22 ningruolily 阅读(871) 评论(0) 推荐(0) 编辑

selenium+python环境搭建

摘要: 1、安装python-2.7.3.msi2、安装pywin32-216.win32-py2.7.exe3、下selenium包,selenium-2.35.0.tar.gz,放到D:\autotest\Python27\Lib\site-packages目录下,并解压到selenium压缩包下执行:python setup.py install4、下载selenium-server-standalone-2.35.0.jar5、在python中执行from selenium import webdriver如果无报错,说明selenium安装成功 阅读全文

posted @ 2013-09-26 11:24 ningruolily 阅读(199) 评论(0) 推荐(0) 编辑