Selenium和Firefox兼容问题
2024-10-12 12:38:44
运行时遇到错误: org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms
后查询得知是两者不兼容引起的问题。解决方法有:
1. cong
用winrar打开selenium-server.jar
查找两个目录:customProfileDirCUSTFFCHROME和customProfileDirCUSTFF
搜索每个目录,对每个文件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>
最新文章
- ASP.Net Core 里是如何把一个普通的 Action 返回类型转换为某种 IActionResult 的
- 【SQL】分配函数一枚[AllotToTable]
- HDU 5497 Inversion
- 转)SSO单点登录在互联网电商应用中的解决方案(基于CAS的改造)
- OSG中的示例程序简介(转)
- 发送trim值
- switch函数——Gevent源码分析
- Linux Kernel 2.6.28 以上有BUG,系统运行第208.5天down机
- 14.19 InnoDB and MySQL Replication InnoDB 和MySQL 复制:
- css实现三列布局,左右固定值,中间自适应。
- Mvc Ajax提交多个checkbox,也说绑定和提交select
- h5 网页版的微博微信QQ登录
- Spring Boot学习总结二
- PHP_D4_“简易聊天室 ”的具体技术实现
- MSSQL2005-由嵌套失误感受到的强大智能优化功能
- 多路选择器实现总线结构——Verilog
- HTML5 ④
- PHP5.3的编译扩展
- C++与C的联系与区别
- Python 日志输出
热门文章
- 静态编译程序 依赖于 Qt 和 Opencv 静态库 会出现 jpeg jpg 图像格式保存崩溃的情况,这是什么原因?
- SharedPreferences封装类
- UVA1602
- span设置宽度有效无效问题
- Vue中method与computed的区别
- PyQt5多点触控写字板实现及困惑
- 【其他】Objective-C 内存管理学习总结
- 工业级GBDT算法︱微软开源 的LightGBM(R包正在开发....)
- Linux 的进程状态
- Caused by: java.lang.ClassNotFoundException: Could not load requested class : org.h2.Driver