org.openqa.selenium.os.UnixProcess$SeleniumWatchDog destroyHarder错误
今天写一个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.
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