Tuesday, August 16, 2016

Protractor - Accepting browser alerts

In this short article we will see how can we accept alerts by using Protractor.


Because browser alerts represents non-angular code, we have to ignore angular synchronization first. Here is the code for accepting the alert. This was tested with Chromedriver.


Happy testing and... make it green, becomes a dream :).

No comments:

Post a Comment

Popular Posts