title: How to handle table data in Protractor
body: <p>In Protractor, how does one handle repeated content, from say a table? For example, given the following code, that kicks out a table with 3 columns: <code>Index</code>, <code>Name</code> and <code>Delete-Button</code> in each row: </p>
  
  <pre><code>&lt;table  class="table table-striped"&gt;
  &lt;tr ng-repeat="row in rows | filter : search"  ng-class="{'muted':isTemp($index)}"&gt;
    &lt;td&gt;{{$index+1}}&lt;/td&gt;
    &lt;td&gt;{{row}}&lt;/td&gt;
    &lt;td&gt;
      &lt;button class="btn btn-danger btn-mini" ng-click="deleteRow(row)" ng-hide="isTemp($index)"&gt;&lt;i class="icon-trash icon-white"&gt;&lt;/i&gt;&lt;/button&gt;
    &lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>And in my test I need to click the delete button based on a given name. What's the best way to find this in Protractor?</p>
  
  <p>I know I could grab the <code>rows.colum({{row}})</code> text, get the index of that, and then click on the <code>button[index]</code>, but I'm hoping for a more elegant solution. </p>
  
  <p>For example, in Geb, you could pass a row locator to a module, that would then dice up each row with column indicators. And that solution has me eyeing Protractors map method... </p>