Manual and Automated Testing
›
WebDriver (aka Selenium 2.0)
Search
everywhere
only in this topic
Advanced Search
Alerts
Classic
List
Threaded
♦
♦
Locked
2 messages
srinithya
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Alerts
how to handle alerts in selenium webdriver?
softwaretestingforum
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Re: Alerts
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
Free forum by Nabble
Edit this page