Selenium Webdriver Error regarding destroyHarder Selenium Webdriver Error regarding destroyHarder selenium selenium

Selenium Webdriver Error regarding destroyHarder


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:

  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.


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.