title: Selenium Python : get index of row of element found
body: <p>The URL is <a href="http://www.ukmi.nhs.uk/applications/ndo/record_view_open.asp?newDrugID=5073" rel="nofollow">http://www.ukmi.nhs.uk/applications/ndo/record_view_open.asp?newDrugID=5073</a></p>
  
  <p>I need to check if 'Evidence Based Evaluations' exists and if it does, print the contents under that. For finding the header, what I've done is :</p>
  
  <pre><code>driver.find_element_by_xpath("//*[@id='contentHolder']//td[text()='Evidence Based Evaluations']")
  </code></pre>
  
  <p>The full xpath for this is:</p>
  
  <pre><code>//*[@id="contentHolder"]/table/tbody/tr/td/table/tbody/tr[4]/td/table/tbody/tr/td[1]/table/tbody/tr[22]/td
  </code></pre>
  
  <p>The xpath of next element (which i need to print) is:</p>
  
  <pre><code> //*[@id="contentHolder"]/table/tbody/tr/td/table/tbody/tr[4]/td/table/tbody/tr/td[1]/table/tbody/tr[23]/td[1]
  </code></pre>
  
  <p>I need to get the index of tr (22, in this case) so I can increment it and use that for the next step. However, the index of tr changes according to the ID passed in the URL. So how do I get this index?</p>
  
  <p>Any help would be appreciated!</p>