I'm occasionally seeing org.openqa.selenium.WebDriverException: target frame detached be thrown during page transitions. I believe this occurs when waitUntilPageIsLoaded() is called before the next page loads, causing the javascriptexecutor to not have a target page.
Expected
If the page isn't loaded, the WebDriverException thrown here should not be thrown.
Repro
As this happens intermittently, it is difficult to reproduce. I think running tests on a site that is under heavy load would make it more likely to occur.
Bug
I'm occasionally seeing
org.openqa.selenium.WebDriverException: target frame detached
be thrown during page transitions. I believe this occurs whenwaitUntilPageIsLoaded()
is called before the next page loads, causing the javascriptexecutor to not have a target page.Expected
If the page isn't loaded, the WebDriverException thrown here should not be thrown.
Repro
As this happens intermittently, it is difficult to reproduce. I think running tests on a site that is under heavy load would make it more likely to occur.