What kind of error is the below one. This occurs when I execute the webdriver script in eclipse:
Jun 20, 2014 1:20:54 PM org.openqa.selenium.os.UnixProcess$SeleniumWatchDog destroyHarder INFO: Command failed to close cleanly. Destroying forcefully (v2). org.openqa.selenium.os.UnixProcess$SeleniumWatchDog@118ed3c
This is a bug. I think you have to downgrade your firefox to 29, if you are using firefox 30.
Please find the below url for moreinformation
https://code.google.com/p/selenium/issues/detail?id=7506
I'm facing this problem in one test project out of four.
Initial investigation led me to conclusion that this happens when trying to quit firefox while page is still loading (the green circle in tab)
If you use Java you can try the following:
ExpectedCondition<Boolean> pageLoadFinishedCondition = new ExpectedCondition<Boolean>() {
public Boolean apply(WebDriver driver) {
return ((JavascriptExecutor) driver).executeScript(
"return document.readyState").equals("complete");
}
};
WebDriverWait wait = new WebDriverWait(driver, 30);
wait.until(pageLoadFinishedCondition);
UPD:
But be advised that 'document is ready' event happens slightly before firefox stops that green circle, so you may need to idle a bit.
Further investigation showed that this is highly dependent on the application itself (And in my case, did not work) E.g. when being on login page of the application, I could not exit, while being on dashboard everything was just fine.
I suggest you try the following:
driver.navigate().refresh();
or something like this.UPD:
I'm also facing the same problem since I upgraded to Firefox.Seems like a plugin compatibility error with Firefox Plugin.I'm not sure if it downgrading will help.
But I removed driver.quit(); from my code as I didn't want the browser to close even after execution of the script.This stopped the errors.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With