I ran into this problem in one of four test projects.
Initial research led me to conclude that this happens when I try to exit Firefox while the page is still loading (green circle on the 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 keep in mind that the βdocument readyβ event occurs a little earlier than firefox stops this green circle, so you may need a little downtime.
Further research has shown that this is highly dependent on the application itself (and in my case it did not work). when I was on the application login page, I could not exit while on the toolbar, everything was in order.
I suggest you try the following:
- Switching to Firefox <30 (problem persists at 33)
- Close while on another page of the application (come up with a stub here)
- Do
driver.navigate().refresh(); or something like that. - Giant idle before quit () sometimes helps, say 2 * implicitlywait
UPD:
- In addition, removing the plugin-container.exe file may help. Please note that after I deleted one, flash no longer loaded on my page.
TEH EMPRAH
source share