title: Protractor - select next sibling of the current element
body: <p>In my code there a list of elements (tr) selected with "protractor.By.repeater".
  This list is looped using "forEach".</p>
  
  <p>Within this loop, the element is clicked, and this click should trigger the inclusion of a new "tr" just after the clicked element.</p>
  
  <p>I want to select that new line.</p>
  
  <p>I used :</p>
  
  <pre><code>var nextRow = tr.$(protractor.By.xpath('following-sibling::tr'));
  </code></pre>
  
  <p>but then with :</p>
  
  <pre><code>                nextRow.isDisplayed(function(row){
                      console.log('row', row);
                  });
  </code></pre>
  
  <p>it generates errors such as : " UnknownError: java.util.HashMap cannot be cast to java.lang.String"</p>
  
  <p>Is there another way to achieve what I want, i.e to select the next sibling of the current element ?</p>
  
  <p>Or did I wrote something incorrect there ?</p>
  
  <p>Thanks for any help!</p>