How to accept Alert in Protractor
Question
How to accept Alert in Protractor
Answer
By using accept() method of Alerts class, we accept Alerts in Protractor.
Note: We have to switch the control to the alert using switchTo().alert() before accepting the alert.