直到在FluentWait中无法应用 - java [英] until in FluentWait cannot be applied - java

查看:457
本文介绍了直到在FluentWait中无法应用 - java的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Selenium的帮手类,以前就像魅力一样,而且出乎意料的是,这个问题出现了。

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.

直到
(java.util.function.Function)FluentWait中的
无法应用

(org.openqa.selenium.support.ui.ExpectedCondition)

原因:没有类型变量的实例V存在,以便ExpectedCondition符合函数

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

推荐答案

解决方案对我有用的是更新Intellij使用的jre。这解决了这个问题。

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

更新:Google Guava 23.0也解决了一些人的问题。

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

这篇关于直到在FluentWait中无法应用 - java的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆