- 下载安装文件:
- selenium-java-2.52.0.zip
- selenium-server-standalone-2.52.0
- jdk-7u45-windows-i586.1454527248
- selenium-java-client-driver-1.0.2.jar
2. 在firefox浏览器中,添加插件:
- firebug-1.13.0a1.xpi
- selenium-ide-2.5.0.xpi
3. 下载:chromedriver.exe 放入chrome安装目录,并将此目录配置到环境变量path中
4. 安装eclipse后,按如下配置: https://www.cnblogs.com/hanlong/p/5258706.html
5. 将selenium-server-standalone-2.52.0.jar放入c:根目录下,启动selenium服务
- cmd
- cd d:/
- java -jar selenium-server-standalone-2.52.0.jar -role hub -maxSession 40 -port 4444
6. 如果chrome报错,HKLM。。。在命令行输入如下命令修改注册表:
- reg add HKLM\SOFTWARE\Policies\Google\Chrome /v MachineLevelUserCloudPolicyEnrollmentToken /t REG_SZ