Selenium 3.3.1 wait.unit抛出错误java.util.function.Function <?super org.openqa.selenium.WebDriver,V>)

Sre*_*dri 2 selenium webdriver

我已经将我的selenium webdriver从3.0.1升级到3.2.0并观察到了

WebDriverWait wait = new WebDriverWait(Driver, 30);
wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("myID"));
Run Code Online (Sandbox Code Playgroud)

如果显示编译错误如下:

方法

until((java.util.function.Function<? super 
 org.openqa.selenium.WebDriver, V>) 
 ExpectedConditions.visibilityOfElementLocated(By.id("myID")));
Run Code Online (Sandbox Code Playgroud)

当我回到selenium 3.0.1时,它按预期工作.

是否存在3.2.0或3.3.1的问题,如何解决此问题

Luc*_*ney 5

将您的guava包更新到版本21