我有一个Selenium测试,它检查某个字符串是否可以在测试页上看到。如果页面没有立即加载,我的想法是使用显式等待。= new WebDriverWait(driver, 10);所以在继续之前,它的等待时间最长为如果它在10秒内看到该元素,则测试将继续。until
(java.util.function.Function
它不工作,没有等待时间,执行只需8秒。我试着用FluentWait来做一些等待时间,等待爱丽姆特是可点击的。webpage.linput));
com.google.common.base.Preconditions.checkNotNull(Preconditions.java:787) at org.openqa.selenium.support.ui.FluentWait(FluentWait.java:102) at org.openqa.selenium.support.ui.We