mardi 2 février 2016

Protractor ng-repeat

I am trying to select all the todo's on http://ift.tt/1xK0SZC. However its only changing the first one. How do I select all the elements:

element.all(by.repeater('todo in todoList.todos')).then(function(rows) {
    for (var i = 0; i < rows.length; ++i) {                
        element.all(by.repeater('todo in todoList.todos')).get(i).element(by.model('todo.done')).click();
    } 
});

Aucun commentaire:

Enregistrer un commentaire