运行selenium-server-standalone.jar时,Firefox无法在***找到该文件

使用selenium-server-standalone-2.48.2.jar启动selenium执行脚本的时候,可以打开Firefox,但是一直提示can't find 不能在***找到文件

###########################################

Firefox 无法在 chrome://src/content/TestRunner.html?auto=true&multiWindow=true&defaultLogLevel=info&baseUrl=http://localhost:8080/&resultsUrl=http://localhost:4445/selenium-server/postResults&test=http://localhost:4445/selenium-server/tests/login_suite.html 找到该文件。


    请检查文件名的大小写或者其他输入错误。
    请检查文件是否已被移动,重命名或删除。

############################################

启动脚本如下:

set PATH=%PATH%;D:\dev\Firefox\;
java -jar selenium-server-standalone-2.48.2.jar -htmlSuite *firefox http://localhost:8080/ F:\selenium\selenium-2.41.0\login_suite.html F:\selenium\selenium-2.41.0\results.html -port 4445 

*因为我的Firefox安装的不是默认路径,也没有配置环境变量,所以需要先将路径加入PATH里

 刚开始一直以为是找不到测试脚本,后来发现可以正常运行的浏览器的地址也是一样的,然后对比两边的不同,终于找到了原因。

原因就是,Firefox的版本问题,前一天晚上浏览器自动更新了,但是不知道为什么会不支持最新版的selenium-server-standalone-2.48.2.jar,所以只能去官网下载低一版本的Firefox,重新安装更新后就可以了

*需注意要设置Firefox的不自动更新:选项->高级->更新->不自动更新

各版本火狐历史版本下载地址:

http://ftp.mozilla.org/pub/firefox/releases/


你可能感兴趣的:(selenium)