Selenium jar包 与 Firefox3.6 兼容问题解决
来源:互联网 发布:学好javascript 编辑:程序博客网 时间:2024/05/18 02:48
Selenium RC 1.0.1 support for Firefox 3.6 February 1, 2010
UPDATE: On Feb 23, 2010 Selenium RC 1.0.3 was released. With this release it now supports
- Firefox 3.6
- Snow Leopard
If you are looking for instructions to download and setup the latest Selenium RC release, look here.
ORIGINAL ARTICLE:
A lot of people are having trouble with selenium and firefox 3.6. Here I have described the steps to first ensure that the problem you are seeing is due to the lack of selenium’s support for your browser version and then steps to patch the selenium-server.jar
to make it work with Firefox 3.6.
Testing Selenium server support for Firefox
The quickest way to test if your selenium server is supporting the Firefox version installed on your machine is to start selenium server in an interactive mode. Let us walk through these steps.
- Run Selenium server in interactive mode. To do this run the command:
java -jar selenium-server.jar -interactive -singleWindow
- Start new selenium browser session using the command:
cmd=getNewBrowserSession&1=*firefox&2=http://www.google.com
- If you see a line saying
Preparing Firefox profile...
and no progress beyond that, there is a high likelihood that the Firefox browser version you have is not supported by your version of selenium server jar you have. If you have Firefox 3.6 and selenium 1.0.1, the next section shows how to fix the problem. - If you don’t see a problem, run the following command:
cmd=open&1=http://www.google.com
If the browser starts and you see Google’s home page in it, your basic setup seems to be fine.
Patching Selenium server to support Firefox 3.6
These steps should work for you on Unix, Mac or cygwin on windows. In case you are not using any of these, you would need to figure out the corresponding steps for our platform.
- Create a directory where you could manipulate the jar’s contents.
cd ~/selenium101
- Copy your selenium-server.jar file in the newly created directory and cd into it.
cp selenium-server.jar ~/selenium101/.
cd ~/selenium101
- Unzip the jar files contents here and delete the jar file.
unzip selenium-server.jar
rm selenium-server.jar
- First find all the *.rdf files – you should see 5 of them:
find . -name "*.rdf"
./customProfileDirCUSTFF/extensions/{538F0036-F358-4f84-A764-89FB437166B4}/install.rdf
./customProfileDirCUSTFF/extensions/readystate@openqa.org/install.rdf
./customProfileDirCUSTFFCHROME/extensions/{503A0CD4-EDC8-489b-853B-19E0BAA8F0A4}/install.rdf
./customProfileDirCUSTFFCHROME/extensions/{538F0036-F358-4f84-A764-89FB437166B4}/install.rdf
./customProfileDirCUSTFFCHROME/extensions/readystate@openqa.org/install.rdf - In each of these files you will see
<em:maxVersion>3.5.*</em:maxVersion>
Change them to<em:maxVersion>3.6.*</em:maxVersion>
- all the files are now patched. To jar them back up run the following steps:
zip -r selenium-server *
mv selenium-server.zip selenium-server.jar
Rerun the browser tests as described earlier. Selenium should now be able to instantiate a new browser and drive it.
- Selenium jar包 与 Firefox3.6 兼容问题解决
- 解决Selenium与firefox浏览器版本不兼容问题
- 解决Selenium与firefox浏览器版本不兼容问题
- 解决Selenium与firefox浏览器版本不兼容问题
- 解决(remote)Selenium与firefox浏览器版本不兼容问题
- 解决Selenium与firefox浏览器版本不兼容问题
- Spring使用Redis jar包兼容问题
- firefox3.6
- 解决打不开jar包
- jar包冲突解决
- Selenium webdriver jar包下载指南
- slf4j与log4j兼容问题解决
- 常见浏览器兼容问题与解决
- CXF中jaxb-api.jar、jaxws-api.jar与jdk1.6不兼容问题
- NoSuchMethodException:解决项目jar包与webSphere自带jar包的冲突
- 解决WebLogic12C与项目中jar包冲突
- 解决WebLogic12C与项目中jar包冲突
- S60模拟器与java1.6版本不兼容问题的解决
- Linux 查看网卡全双工 还是半双工 以及设置网卡为半双工
- LINQ之Count
- FLASH与ASP通信入门教程(六) LV与ASP综合运用(二)
- ip数据流走向图解
- LINQ之LongCount
- Selenium jar包 与 Firefox3.6 兼容问题解决
- LINQ之Sum
- LINQ之Min
- 用asp.net 2.0 formview控件控制显示
- LINQ之Max
- LINQ之Average
- 面向模式的软件架构.第4卷,分布式计算的模式语言(经典POSA系列的第4卷)
- LINQ之Aggregate
- 调整Speak和Microphone音量。判断是否静音