wait.until(ExpectedConditions) doesnt work any more in selenium : <p>So far I used 2.45.0 version of selenium and all my waits were done in this way:</p>

<pre><code>WebDriverWait wait = new WebDriverWait(webKitUtility.getWebDriver(), 5);
wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("role")));
</code></pre>

<p>But I updated selenium to 3.1.0 and I am getting the error:</p>

<p>"The method until(Predicate) in the type FluentWait is not applicable for the arguments 
 (ExpectedCondition)"</p>

<p>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.</p>
