Код: Выделить всё
@FindBy(id = "privacy-iframe")
WebElementFacade cookieBannerIFrame;
Boolean cookieDisplayed = withTimeoutOf(Duration.ofSeconds(20)).waitFor(cookieBannerIFrame).isPresent();
Код: Выделить всё
org.openqa.selenium.TimeoutException: Expected condition failed: waiting for net.serenitybdd.core.pages.RenderedPageObjectView$$Lambda$1098/0x000000e001621100@6719f206 (tried for 20 second(s) with 50 milliseconds interval)
< /code>
isPresent()
< /p>
Я что -то неправильно понял? Любая помощь! Заранее спасибо.
Подробнее здесь: https://stackoverflow.com/questions/794 ... of-boolean