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?
Aucun commentaire:
Enregistrer un commentaire