how to accept an alert in selenium webdriver WebDriverWait wait; Alert alert = wait.until(alertIsPresent()); alert.accept(); Tags: alertseleniumwebdriver