1
我想等我的線程,直到元素不存在或隱藏。這樣等到元素未找到或隱藏
new WebDriverWait(driver, TIME_OUT_SECS).until(new ExpectedCondition<WebElement>() {
@Override
public Boolean apply(WebDriver d) {
return !d.findElement(by).isDisplayed();
}
});
,但得到的錯誤
attempting to use incompatible return type