So far I used 2.45.0 version of selenium and all my waits were done in this way:
WebDriverWait wait = new WebDriverWait(webKitUtility.getWebDriver(), 5);
wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("role")));
But I updated selenium to 3.1.0 and I am getting the error:
"The method until(Predicate) in the type FluentWait is not applicable for the arguments (ExpectedCondition)"
I see that from 2.45.0 to 3.1.0 some things are deprecated. I am trying to investigate what is the best way to do it now, but I am not sure. Most of the things I'm finding on google are old information explaining the same way I was using so far.