title: Protractor - get child element of an element?
body: <p>I am trying to access child element of an ng-repeat element but I am having troubles doing that.</p>
  
  <p>I have searched around about the problem and the solutions that I have found did not work for me. One of those solutions was to do something like this:</p>
  
  <pre><code>var parent = element(by.repeater(''));
  var child = parent.element(by.....);
  </code></pre>
  
  <p>When I try the <code>child</code> line I cant see the element function on the parent element..</p>
  
  <p><a href="http://prikachi.com/images/11/8338011u.png" rel="noreferrer">http://prikachi.com/images/11/8338011u.png</a></p>
  
  <p>If you see the screenshot above you will see the structure of the code of the page that I am trying to test.</p>
  
  <p>I need to access the alt attribute of the image of the avatar and get its value (thats the Username of the User).</p>
  
  <p>One thing that came to my mind is to use <code>.getInnerHTML()</code> on the ng-repeat row which will return a string with all that code. From there I can find the <code>alt</code> attribute and its value with string manipulation but this seems too brute and I am sure that there has to be a better way.</p>
  
  <p>Simply I want to be able to get row 4 from the repeater and get the Username of the user at row 4, that's all I wanna do actually.</p>