I am writing test cases in protractor E2E. I want that when I run the case, and when I press save, then a Growl message is shown with success or error.
this.growlMessage = function () {
return element(by.css("div[ng-bind='message.text']")).getText();
}
Now I am able to fetch the message if we are having error because it stays there as long it is closed. But the success message disappears after some time automatically. In Protractor, the case keeps waiting for the Growl to disappear and then perform the next execution. I think protractor is waiting for the growl to finish it work.
How can we wait for this and get the text ?
Aucun commentaire:
Enregistrer un commentaire