博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
selenium支付高版本的FireFox
阅读量:4332 次
发布时间:2019-06-06

本文共 1041 字,大约阅读时间需要 3 分钟。

15:22:12.031 WARN - GET /selenium-server/driver/?cmd=getNewBrowserSession&1=*fir

efox&2=http://www.google.com HTTP/1.1
java.lang.RuntimeException: Firefox refused shutdown while preparing a profile
        at org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLaunc
her.waitForFullProfileToBeCreated(FirefoxCustomProfileLauncher.java:277)

 

 

后来查了google发现问题是selenium不支持高版本firefox, 解决方案如下:

 1、用winrar打开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>3.5.*</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>3.6.*</em:maxVersion>
            </Description>
        </em:targetApplication>

 

 

        还可以改得更加大,那么就可以支持4.0 的firefox了

转载于:https://www.cnblogs.com/wcLT/p/3503921.html

你可能感兴趣的文章
laravel连接sql server 2008
查看>>
Ubuntu菜鸟入门(五)—— 一些编程相关工具
查看>>
valgrind检测linux程序内存泄露
查看>>
Hadoop以及组件介绍
查看>>
1020 Tree Traversals (25)(25 point(s))
查看>>
第一次作业
查看>>
“==”运算符与equals()
查看>>
单工、半双工和全双工的定义
查看>>
Hdu【线段树】基础题.cpp
查看>>
时钟系统
查看>>
BiTree
查看>>
5个基于HTML5的加载动画推荐
查看>>
水平权限漏洞的修复方案
查看>>
静态链接与动态链接的区别
查看>>
Android 关于悬浮窗权限的问题
查看>>
如何使用mysql
查看>>
linux下wc命令详解
查看>>
敏捷开发中软件测试团队的职责和产出是什么?
查看>>
在mvc3中使用ffmpeg对上传视频进行截图和转换格式
查看>>
python的字符串内建函数
查看>>