I'm trying to accept alert using driver.switchTo().alert()
keywords. But its not working for google chrome and Firefox. But its work for IE11. This Error message print in Eclipse Console.This is the alert
This is my code :
Alert alert = driver.switchTo().alert();
alert.accept();
Are there any solution for this error ?