Manoj Kumar
Manoj Kumar

Reputation: 93

Unable to implement Explicit wait

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

Answers (1)

Manoj Kumar
Manoj Kumar

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

Related Questions