title: Angular JS How to get all rows of a repeater with Protractor?
body: <p>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.</p>
  
  <pre><code>element(by.repeater('user in allUsers')).then(function(rows) {
    for (var i = 0; i &lt; rows.length; ++i) {
      // if the right row is found click on the last column to delete it
    } 
  });
  </code></pre>
  
  <p>I get an TypeError: Object # has no method 'then'</p>
  
  <p>I found my solution here but that is still the old syntax </p>