how to accept an alert in selenium webdriver


WebDriverWait wait;
Alert alert = wait.until(alertIsPresent());
alert.accept();

No images available.