Getting error after update 3.4

已查看 13 次
跳至第一个未读帖子

Ankit Gupta

未读,
2018年6月13日 08:28:212018/6/13
收件人 seleniu...@googlegroups.com
Below is the error:

required: java.util.function.Function<? super org.openqa.selenium.WebDriver,V>
[ERROR]   found: org.openqa.selenium.support.ui.ExpectedCondition<java.lang.Boolean>
[ERROR]   reason: cannot infer type-variable(s) V
[ERROR]     (argument mismatch; org.openqa.selenium.support.ui.ExpectedCondition<java.lang.Boolean> cannot be converted to java.util.function.Function<? super org.openqa.selenium.WebDriver,V>)


Belos is the code where the error is coming:

 boolean   dashbaord = (boolean) (wait.until(ExpectedConditions.urlContains("dashboard")));

Ques: How I can resolve this code?

even I also used below dependency:
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>21.0</version>
</dependency>



回复全部
回复作者
转发
0 个新帖子