Similar Posts

3 Comments

  1. How about:

    new WebDriverWait(driver, timeout)
    .ignoring(StaleElementReferenceException.class)
    .until((WebDriver d) -> {
    d.findElement(By.id(“checkoutLink”)).click();
    return true;
    });

Leave a Reply

Your email address will not be published. Required fields are marked *