mardi 7 juin 2016

Protractor : how to wait for all elements of ng-repeat to be displayed

Panel Property Page:

this.IncList = element.all(by.repeater('list in $ctrl.all track by list.guid'));

Function to wait for List to be displayed:

exports.WaitUntilListDisplaye = function(){
    browser.wait(function(){
        Panel.IncList.isDisplayed();
    },10000);
};

If I use this function in my test to wait for all the items of the list to be displayed it, times out every time. Is there any way to wait until all the element of ng-repeat is displayed.

Aucun commentaire:

Enregistrer un commentaire