org.openqa.selenium.os.UnixProcess$SeleniumWatchDog destroyHarder错误
2015-06-01 10:54
555 查看
今天写一个login的test,在运行完后报错org.openqa.selenium.os.UnixProcess$SeleniumWatchDog destroyHarder在网上搜了一下,有如下三个方法可以解决:1. Downgrade your FF version.
降低Firefox的版本
2. Delete plugin-container.exe from C:\Program Files\Mozilla Firefox\plugin-container.exe.
删除plugin-container.exe文件
3. Use the code below 添加以下函数
public void closeBrowserSession() throws IOException {
Runtime.getRuntime().exec(“taskkill /F /IM chrome.exe”);
Runtime.getRuntime().exec(“taskkill /F /IM iexplorer.exe”);
Runtime.getRuntime().exec(“taskkill /F /IM firefox.exe”);
}
This will run on windows only.
我用第二个方法去解决的。不再报错了
http://www.dataguru.cn/thread-481419-1-1.html
降低Firefox的版本
2. Delete plugin-container.exe from C:\Program Files\Mozilla Firefox\plugin-container.exe.
删除plugin-container.exe文件
3. Use the code below 添加以下函数
public void closeBrowserSession() throws IOException {
Runtime.getRuntime().exec(“taskkill /F /IM chrome.exe”);
Runtime.getRuntime().exec(“taskkill /F /IM iexplorer.exe”);
Runtime.getRuntime().exec(“taskkill /F /IM firefox.exe”);
}
This will run on windows only.
我用第二个方法去解决的。不再报错了
http://www.dataguru.cn/thread-481419-1-1.html
相关文章推荐
- 《Linux内核设计与实现》之中断与中断处理程序
- sparkshell里的wordcount
- Linux基础:进程管理
- Linux下搭建Cortex-M嵌入式开发环境
- LINUX常用查看信息集
- Linux下Android ADB驱动安装详解
- opencv从内存读取图片
- 基于Linux的BeagleBoard-xm终端开发环境搭建
- linux 端口占用查看
- CentOS下桥接模式设置静态IP的方法
- 基于xmpp openfire smack开发之openfire介绍和部署[1]
- linuxIO刷新机制fsync和fdatasync详解
- centos 下 Qt Creator 的安装使用
- Properties 类
- Linux守护进程的编程实现
- 好的书籍下载网站
- eclipse部署非WEB项目到Tomcat
- tomcat 启动不了的原因
- 单片机和嵌入式系统linux的区别
- Android系统架构之微服务架构