title: How can I increment the Xpath in webdriver script?
body: <pre><code>driver.findElement(By.xpath(".//*@id='MyGrid']/tbody/tr[1]/td/table/tbody/tr/td[2]/table/tbody/tr/td[2]/table/tbody/tr[1]/td[3]/b")).getText();
  
  .//*@id='MyGrid']/tbody/tr[2]/td/table/tbody/tr/td[2]/table/tbody/tr/td[2]/table/tbody/tr[1]/td[3]/b
  .//*[@id='MyGrid']/tbody/tr[3]/td/table/tbody/tr/td[2]/table/tbody/tr/td[2]/table/tbody/tr[1]/td[3]/b
  </code></pre>
  
  <p>Need to increment above xpaths and performs actions.</p>