JavaScript Alerts and Selenium/Webdriver.

One of the most popular question among selenium/Webdriver users. I used that couple of places to handle. Selenium RC: if you are expecting javaScript alert and  you want to handle using OK then use following commands and then you can use your code. selenium.chooseCancelOnNextConfirmation() selenium.chooseOkOnNextConfirmation() Note: In Firefox 4.0 and higher version, you will see alerts like […]