Reputation: 93
I am trying to add explicit wait in scripting but I am getting the following error
"The type com.google.common.base.Function cannot be resolved. It is indirectly referenced from required .class files"
My code
WebElement okButton;
okButton = wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//button[@id='buttonResolveResultOk']")));
Upvotes: 2
Views: 2969
Reputation: 93
I updated my guava to latest which helped me to solve this issue
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>21.0</version>
</dependency>
Upvotes: 3