I am using AngularJS and I want to delete a link, in such cases, an alert box appears to confirm the delete.
I am trying to do e2e test using protractor, how do I confirm in an alert box?
I tried:
browser.switchTo().alert().accept()
but it doesn't seem to work.
Is there a provision in protractor for handling alert boxes?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With