title: How does one search for parent (with some parent attribute) for a found xpath?
body: <p>In a table, rows are present with the following hierarchy:</p>
  
  <pre><code>//div[@class='table']
      //div[@class='some_row_n']//......some xpath...//&lt;child with text abc&gt;
      //div[@class='some_row_m']//......some xpath...//&lt;child with text xyz&gt;
  </code></pre>
  
  <p>I can reach xpath with </p>
  
  <pre><code>//div[@class='table']//div[descendant::text()="abc"]
  </code></pre>
  
  <p>But is there a way using which I could figure out an xpath to the parent row <code>'some_row_n'</code> (or <code>'some_row_m'</code> depending on the searched text). The issue is that the number of items in the xpath section <code>.....some xpath...</code> above is unknown at design time.</p>
  
  <p><strong>I am trying to achieve this without having to loop over each row to find text.</strong> This could reduce the coding effort extremely.</p>