title: Protractor - clicking a link in a list
body: <p>Given a todo app that has a list of tasks: Walk the dog, Eat lunch, Go shopping. Each task has a 'complete' link.</p>
  
  <p>Using Protractor, how do I click the complete link for the second task 'Eat lunch'? Preferably I'd like to do this without using indices in my test.</p>
  
  <p>The html structure is like so...</p>
  
  <pre><code>&lt;ul class="pending"&gt;
      &lt;li ng-repeat="task in tasks"&gt;
          {{task.name}}
          &lt;a href='#'&gt;Complete&lt;/a&gt;
      &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>This seems like a common situation so surely there has to be a simple solution that I'm overlooking. Thanks in advance</p>