Restore behavior of wait for navigation to complete
when a user prompt is opened (from before PR #1802 landed)
#1857
Labels
wait for navigation to complete
when a user prompt is opened (from before PR #1802 landed)
#1857
As noted in this GitHub comment, we introduced a regression in our
wait for navigation to complete
algorithm, which causes timeouts to be mishandled when a user prompt is opened. The missing sentence from the original specification is:Currently, this causes the navigation to always timeout.
In addition to restoring this behavior, I’m questioning why we need to wait for a timeout before checking for user prompts. While
beforeunload
prompts are automatically dismissed in WebDriver classic, we don’t do this for other prompt types likealert
,confirm
, andprompt
. This results in a timeout delay, which defaults to 300 seconds! Why can't we simply return from the navigation as soon as a user prompt is opened?Here’s a basic example of a page that would cause a timeout:
Additional thoughts:
The text was updated successfully, but these errors were encountered: