-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
FluentWait might never complete #7494
Comments
Happens for me as well await driver.wait(until.elementLocated(By.css("some element"), 5000, 'Could not locate the element within the time specified')); Never returns |
Is this JS code? |
Yes JS code using webdriverjs https://www.npmjs.com/package/selenium-webdriver latest version ^4.0.0-alpha.4 with chrome driver latest version ^76.0.0 |
The issue I'm seeing is in a java client, so I'm fairly confident the two is unrelated. I'm not familiar with the JS client, so I can't really help you where to look, Sorry. |
Once I get some time, I would love to open a PR (have a working solution in our project) for fixing this. |
FluentWait could potentially never complete when the condition passed to it made no progress (either because it fall into an infinite loop or waiting for a resource or response over network). Fixes SeleniumHQ#7494
Hanged is a dodgy expression. Fixes SeleniumHQ#7494
FluentWait could potentially never complete when the condition passed to it made no progress (either because it fall into an infinite loop or waiting for a resource or response over network). Fixes SeleniumHQ#7494
Hanged is a dodgy expression. Fixes SeleniumHQ#7494
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sorry to say this, but we decided to return back to the legacy (blocking) implementation after clients complains. It appears that many people use suboptimal approach to manage WebDriver instances using TreadLocal variables. And running conditions in a separate thread makes them lost their driver. So we decided to revert this change in favour of backward compatibility. |
🐛 Bug Report
When
Function
passed tountil
never returns then FluentWait never completes.To Reproduce
Expected behavior
FluentWait
throws timeout exception after timeout value set for it has passed.Test script or set of commands reproducing this issue
The text was updated successfully, but these errors were encountered: