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 新建编译器
2.3 改编码环境
3.测试
3.1 File->New->Project,选PyDev下的PyDev Project,Grammer和Interpreter选相应的版本,Finish。因为我更喜欢直观的有src foder,所以勾选了Create 'src'。
3.2 建立一个py文件,然后运行看看, ok
browser = webdriver.Chrome("D:\\python35\\Python35\\selenium\\webdriver\\chromedriver_2.25\\chromedriver.exe")
browser.get('http://www.baidu.com')