selenium server如何支持高版本firefox
2011-08-29 11:08
337 查看
基于selenium测试firefox页面内容,发现跑测试脚本的时候selenium sever 总是hang在
Preparing Firefox profile...这里就不动了,firefox启动不了,测试脚本也迟迟不能运行。
我用的是selenium-remote-control-1.0.1-dist这个版本,
google下发现问题是selenium不支持高版本firefox, 解决方案如下:
1、用winrar或7ZIP打开selenium-server.jar;
2、查找两个目录:customProfileDirCUSTFFCHROME和customProfileDirCUSTFF;
3、搜索每个目录,对每个文件install.rdf,编辑如下行:
修改
<!-- Firefox -->
<em:targetApplication>
<Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
<em:minVersion>1.4.1</em:minVersion>
<em:maxVersion>4.*</em:maxVersion>
</Description>
</em:targetApplication>
为
<!-- Firefox -->
<em:targetApplication>
<Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
<em:minVersion>1.4.1</em:minVersion>
<em:maxVersion>4.*</em:maxVersion>
</Description>
</em:targetApplication>
还可以改得更加大,那么就可以支持更高的firefox版本了。改完后firefox被成功启动。
Preparing Firefox profile...这里就不动了,firefox启动不了,测试脚本也迟迟不能运行。
我用的是selenium-remote-control-1.0.1-dist这个版本,
google下发现问题是selenium不支持高版本firefox, 解决方案如下:
1、用winrar或7ZIP打开selenium-server.jar;
2、查找两个目录:customProfileDirCUSTFFCHROME和customProfileDirCUSTFF;
3、搜索每个目录,对每个文件install.rdf,编辑如下行:
修改
<!-- Firefox -->
<em:targetApplication>
<Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
<em:minVersion>1.4.1</em:minVersion>
<em:maxVersion>4.*</em:maxVersion>
</Description>
</em:targetApplication>
为
<!-- Firefox -->
<em:targetApplication>
<Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
<em:minVersion>1.4.1</em:minVersion>
<em:maxVersion>4.*</em:maxVersion>
</Description>
</em:targetApplication>
还可以改得更加大,那么就可以支持更高的firefox版本了。改完后firefox被成功启动。
相关文章推荐
- Selenium 不支持高版本firefox
- selenium server 和 firefox 版本兼容性
- 解决selenium不支持firefox低版本
- 解决selenium不支持firefox低版本的问题
- 利用selenium Server实现IE firefox 和 chrome兼容性测试
- 如何查看SQL SERVER补丁的版本
- 如何判断自己的浏览器支持的是javascript的那个版本
- InstallShield高级应用--检测系统ServerPack版本,SP2前不支持则 abort
- vue.js 2.x 版本脚手架中没有dev-server.js 如何进行数据模拟
- 【转】如何得到Windows操作系统版本信息(包括2003 R2、Vista和Windows 2008 Server)
- 如何用Xcode 4.5 编译支持 armv6 CPU及iOS 4.3以前的版本
- 如何制作多语言dll支持应用程序多语言版本
- 低版本Firefox支持innerText属性兼容方法
- Selenium和Firefox对应版本及注意事项
- 教你如何快速下载旧版本的Firefox浏览器
- ubuntu系统如何将firefox升级到最新版本
- 如何查看arm-linux-gcc某个版本支持的-mcpu,-march可选值
- 让PDF.NET支持不同版本的SQL Server Compact数据库
- 在eclipse wtp server中,还是tomcat支持力度最强,jetty6也还行,其它版本server都不稳定或支持度不够
- selenium 与 firefox版本不兼容报错