title: selenium - python - fetch the table row containing element
body: <p>I am fetching elements in the table:</p>
  <pre><code>&lt;tbody id=&quot;actiontable-tbody&quot;&gt;
  &lt;tr&gt;
      &lt;td class=&quot;letterbreak first&quot;&gt;default&lt;/td&gt;       &lt;!-- first fetch this element --&gt;
      &lt;td class=&quot;letterbreak&quot;&gt;Internal&lt;/td&gt;
      &lt;td class=&quot;action-btn-cell&quot; id=&quot;id9c&quot;&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td class=&quot;letterbreak first odd&quot;&gt;opcua-module&lt;/td&gt;
      &lt;td class=&quot;letterbreak odd&quot;&gt;Internal&lt;/td&gt;
      &lt;td class=&quot;action-btn-cell&quot; id=&quot;id9d&quot;&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
  &lt;/tbody&gt;
  </code></pre>
  <p>I first fetch an element in one of the rows:</p>
  <pre><code>element = driver.find_element(By.XPATH,&quot;//*[text()='default']&quot;)
  </code></pre>
  <p>Now I want to fetch the row containing that element. I tried:</p>
  <pre><code>row = element.parent
  </code></pre>
  <p>But that is returning a <code>webDriver</code> object. How do I fetch the row with respect to the element in that row?</p>
  <p>Edit: The ultimate goal is to then fetch the &quot;action-btn-cell&quot; element in that same row. So I was trying to go up a node and fetch the row node to then fetch the &quot;action-btn-cell&quot;. Once I fetch the first element can I then fetch it's siblings? The fetch needs to be done starting with the first fetched element, either by going up to the row node or fetching the siblings, not by looping through all of the rows (it's a limitation by how the algorithm is implemented).</p>