kgress / scaffold

A Java based Selenium WebDriver abstraction
MIT License
4 stars 7 forks source link

javascriptexecutor being called during page transitions leading to target frame detached #143

Closed atari-xia closed 2 years ago

atari-xia commented 2 years ago

Bug

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.