Getting error after update 3.4

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Getting error after update 3.4

Ankit Gupta-2
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>



--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAKrer0AbwAWcEDYBa4qw14_DzJ5fgrV9wTmJxnjfKGgki5LfVw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.