Reputation: 51
I have a table with all users and I want to search for a user with the column {{user.name}} === 'X'. When I found the right row I want to delete the entry with a click on the last column of the row.
element(by.repeater('user in allUsers')).then(function(rows) {
for (var i = 0; i < rows.length; ++i) {
// if the right row is found click on the last column to delete it
}
});
I get an TypeError: Object # has no method 'then'
I found my solution here but that is still the old syntax
Upvotes: 5
Views: 10837
Reputation: 691685
You forgot to call the all
function:
element.all(by.repeater('user in allUsers')).then(function(rows) {
Upvotes: 7