← Back to Selenium Practice

Alert Handling

Practice UI

Alert a =
driver.switchTo().alert();

a.accept();

a.dismiss();

a.sendKeys("Admin");