title: How to fetch last row of a webtable in selenium
body: <p>I have a webtable for which I have to fetch the last row . The problem is that the webtable is dynamic so I don't know the row number.I have tried below code but the row number is static there which will fail.</p>
  
  <pre><code>List&lt;WebElement&gt; rows=driver.findElements(By.xpath("//table[1]/tbody/tr[5]"));
  </code></pre>