title: How to iterate through an xml path string (table rows -- tr[1], tr[2], tr[3]...) using Python?
body: <p>I have this html xml path:</p>
  
  <pre><code>"//*[@id="example"]/tbody/tr[2]/td[1]"
  </code></pre>
  
  <p>It has to be processed as a string by my find_element() algorithm
  but I need to iterate up at tr[2] (eg, tr[2], tr[3], tr[4]...) so that my webscraping algorithm can expand a clickable button in a html table. </p>
  
  <p>What are some strategies / implementations to accomplish this?</p>
  
  <p>(I'm using the Selenium python library for the webscraper)</p>