有人能解釋一下這個「fluentwait」的工作原理和結構嗎?Selenium中的fluentwait Java
Wait<WebDriver> wait = new FluentWait<>(driver)
.withTimeout(60, TimeUnit.SECONDS)
.pollingEvery(5, TimeUnit.SECONDS)
.ignoring(NoSuchElementException.class);
wait.until(new com.google.common.base.Function<WebDriver, Boolean>() {
@Override
public Boolean apply(WebDriver driver) {
return null;
}
});
[有沒有需要在webdriver腳本之間添加等待](http://stackoverflow.com/questions/37939413/is-there-a-need-to-add-waits-in -The-of-the-the-script-in-webdriver) – vv88