0

I always used the following piece of java code to tell my Selenium Webdriver tests to wait a certain amount of time as specified within my config file (waittime is time wait for an element to be present in seconds).

private void waitForElementPresent(By locator) {
    WebDriverWait wait = new WebDriverWait(driver, Integer.parseInt(CONFIG.getProperty("waittime")));
    wait.until(ExpectedConditions.elementToBeClickable(locator));

It always worked fine, until I updated after 2.47.1.

What I want, is that this helper code works once more under the new webdriver versions.

user3356141
  • 491
  • 1
  • 14
  • 26
  • This sounds like an [X-Y problem](http://xyproblem.info/). Instead of asking for help with your solution to the problem, edit your question and ask about the actual problem. What are you trying to do? – undetected Selenium Jul 10 '18 at 08:04
  • If I will talk about selenium 3.12.0 , I have not faced this issue. – cruisepandey Jul 10 '18 at 08:43

1 Answers1

1

until in FluentWait cannot be applied - java had the same issue. I wasn't able to find this, as I was under the impression I had an Explicit wait, but it was a fluent wait. Searching on Fluent wait I found the solution.

Dependency Google Guava had to be upgraded alongside Webdriver. Once I updated com.google.guava to 23.0 it worked like a charm.

user3356141
  • 491
  • 1
  • 14
  • 26