title: How to spot elements belonging to the same row using Selenium?
body: <p>I have a table that contains multiple rows and columns.</p>
  
  <p>I need to locate an element in column one that lies in the same row with a particular element in colum two.</p>
  
  <p>Here is  apart of HTML</p>
  
  <pre><code>&lt;tr&gt;
  &lt;td element1&gt;
  &lt;/td&gt;
  &lt;td element2&gt;
  &lt;/td&gt;
  &lt;/tr&gt;
  
  &lt;tr&gt;
  &lt;td element3&gt;
  &lt;/td&gt;
  &lt;td element4&gt;
  &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>Elements: element1 and element3 have absolutely the same HTML. <strong>The only thing that I can use to differentiate between them is their sibling elements: element3 and element4.</strong></p>
  
  <p><strong>I need to locate element3 BECAUSE it is a sibling of element 4. So first I need to narrow down my search to element that are in the same row <code>&lt;tr</code> as element4. Then, I can locate element3. How can I do this?</strong> </p>
  
  <p>PS: I cannot use <code>.get(2)</code> or tr[2] ... etc. But I can navigate element2 and element 4 individually</p>