博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

解决selenium-RC无法启动firefox浏览器进行java测试脚本的问题

Posted on 2011-05-31 11:32  xshy  阅读(630)  评论(0)    收藏  举报

首先保证firefox版本号和RC的版本兼容

其次手动指定firefox主程序路径,例如:

new DefaultSelenium("localhost", 4444, "*custom C:\\Program Files\\Mozilla Firefox\\firefox.exe", "http://www.abc.com/");

最后,设置firefox的代理服务器为selenium-server,即此处例子为:localhost:4444