Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Selenium Webdriver Error regarding destroyHarder

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

like image 469
Saravana Avatar asked Jun 20 '14 07:06

Saravana


3 Answers

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

like image 148
Babulu Avatar answered Nov 01 '22 03:11

Babulu


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:

  1. Downgrade to Firefox <30 (problem persists in 33)
  2. Quit while being on another page of the application (invent some stub here)
  3. Make driver.navigate().refresh(); or something like this.
  4. Giant idling before quit() sometimes helps, say, 2*implicitlywait

UPD:

  1. Also, deleting plugin-container.exe might help. Note that after I deleted one, flash wasn't loading into my page any longer.
like image 25
TEH EMPRAH Avatar answered Nov 01 '22 02:11

TEH EMPRAH


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.

like image 1
lionxlamb Avatar answered Nov 01 '22 04:11

lionxlamb