Alerts

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Alerts

srinithya
how to handle alerts in selenium webdriver?
Reply | Threaded
Open this post in threaded view
|

Re: Alerts

softwaretestingforum
Administrator
You can switch to alert using -

driver.switchTo().alert();

and can accept or dismiss them -

driver.switchTo().alert().accept();
driver.switchTo().alert().dismiss();
~ seleniumtests.com