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>