Skip to content

Click() returns before navigation completes #195

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kevinoid opened this issue Apr 2, 2025 · 0 comments
Open

Click() returns before navigation completes #195

kevinoid opened this issue Apr 2, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@kevinoid
Copy link

kevinoid commented Apr 2, 2025

With Edge 134 (tested 134.0.3124.51, .66, .68, and .93) .Click() method calls on <input> or <button> which trigger navigation via POST form submission sometimes (~20%?) return before page navigation completes. This makes automation significantly more difficult and can cause issues due to stale elements if care is not taken to ensure navigation completes prior to subsequent use. Downgrading to Edge 133.0.3065.92 has been an effective workaround for us.

The issue was reported in to Selenium in SeleniumHQ/selenium#15404 and Chromium in https://issues.chromium.org/issues/405607581 and is being discussed on the selenium-users mailing list. I couldn't find an open issue here and thought one might be useful.

I've created a minimal reproduction to demonstrate this issue using Selenium from either C# or Node.js: https://gist.github.com/kevinoid/29510f6544d7201f4e2c25e8a871a61a

The reproduction submits an HTML form with unique input and confirms that each response includes the submitted input. It runs without error using Edge 133 and fails after ~5 attempts with Edge 134 with StaleElementException/StaleElementReferenceError (due to Click() returning before navigation had completed).

Thanks,
Kevin

@kevinoid kevinoid added the bug Something isn't working label Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant