vendredi 3 juillet 2015

AngularJS & Protractor - Perform .click() while an element .isDisplayed()

I want to test "Show more" button in my AngularJS app, so when user hits the button it will load some content and where there is nothing more to show the button hides.

How can I perform .click() while "Show more" is displayed. I don't want to hardcode the number of loops but somehow insert .isDisplayed() (even if it returns a promise) into while()

Aucun commentaire:

Enregistrer un commentaire