windows下搭建eclipse+selenium3+python环境

windows下搭建eclipse+selenium3+python环境,需要安装Python3.5+selenium3.0.1+chrome54.0.2840.99m+chromeDriver+eclipse-java-neon+Pydev

其中Python3.5+selenium3.0.1+chrome54.0.2840.99m+chromeDriver的安装参考文章http://blog.csdn.net/u014180419/article/details/53390510,下面介绍安装eclipse-java-neon+Pydev的安装教程。


下载地址:http://pan.baidu.com/s/1o82fVxK  密码:hvya


1.安装Eclipse

1.1  下载eclipse-java-neon-2-RC2-win32-x86_64.zip,解压启动eclipse.exe即可(前提:JDK安装完成并配置好环境变量)


2.安装Pydev

2.1  下载PyDev 4.5.5.zip,解压解压包有两个features和plugin,将两个文件夹内的文件都相应copy到Eclipse安装目录下的features和plugin里

2.2  新建编译器

windows->preferences->PyDev->Interpreter - Python,New一个Python解释器,填上解释器名字和路径,路径选相应的python.exe。 


2.3  改编码环境 

window-preference-General->Editors->Text Editors->Spelling,Encoding改成Other: UTF-8
General->Workspace,Text file encoding改成Other:UTF-8

3.测试

3.1  File->New->Project,选PyDev下的PyDev Project,Grammer和Interpreter选相应的版本,Finish。因为我更喜欢直观的有src foder,所以勾选了Create 'src'。

3.2  建立一个py文件,然后运行看看, ok


from selenium import webdriver
browser = webdriver.Chrome("D:\\python35\\Python35\\selenium\\webdriver\\chromedriver_2.25\\chromedriver.exe")
browser.get('http://www.baidu.com')













评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值