Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

until in FluentWait cannot be applied - java

I've had a helper class for Selenium that worked like a charm previously, and out of the blue, this issue came up.

I've also attached a screenshot of the affected functions.

until (java.util.function.Function) in FluentWait cannot be applied to (org.openqa.selenium.support.ui.ExpectedCondition)   reason: no instance(s) of type variable(s) V exist so that ExpectedCondition conforms to Function

enter image description here

like image 363
Mohamed Said Avatar asked Aug 03 '26 22:08

Mohamed Said


1 Answers

The solution that worked for me was to update the jre used by Intellij. that resolved the issue.

Update: Google Guava 23.0 also fixed the issue for some people.

like image 119
Mohamed Said Avatar answered Aug 06 '26 10:08

Mohamed Said



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!