您的位置:首页 > 运维架构

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: