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