问题描述
我在我的应用程序中使用 selenium-server 和 selenium rc 进行 UI 测试.我的开发箱是带有 FireFox 3.5 的 Windows,一切都运行良好且很酷.但是当我尝试在我的构建服务器(Linux 机器)上运行 selenium 测试时,我收到此错误
I am using selenium-server , selenium rc for UI testing in my application . My dev box is Windows with FireFox 3.5 and every thing is running fine and cool. But when i try to run selenium tests on my build server which is a linux box , i get this error
Caution: '/usr/bin/firefox': file is a script file, not a real executable. The browser environment is no longer fully under RC control
基本上 selenium-rc 无法在 linux 上找到 firefox 可执行文件(这里实际上是一个 .sh 文件),这在 Windows 的情况下存在.
basically the selenium-rc is not able to find the firefox executable on linux(actually its a .sh file here), which is present in the case of Windows .
有没有人遇到过这个错误.请让我知道任何指示.
Has anyone faced this error before. Please let me know for any pointers.
感谢您的帮助
~普拉提克
谢谢!普拉提克
推荐答案
嘿,我在 Karmic 上运行 Selenium,没有任何问题.我不太记得我是怎么做的,但我认为这是一个从 selenium-rc-serve.jar 获取更新版本的案例.
Hey, I have Selenium running on Karmic with no issues. I can't quite remember how I did it, but I think it was a case of grabbing a more recent version ot the selenium-rc-serve.jar.
我还记得看过这篇文章:http://tero.tilus.net/rutinat/2009/08/18/cucumber-running-selenium-on-debian-lenny/
I also remember looking at this post: http://tero.tilus.net/rutinat/2009/08/18/cucumber-running-selenium-on-debian-lenny/
希望那里有一些东西可以为您指明正确的方向!
Hope something there points you in the right direction!
这篇关于Selenium 无法在 Linux 上与 Firefox 3.x 一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!