title: How to get all the values using Xpath Selenium
body: <p>I want to get all the values of td[3]. I have the below code </p>
  
  <pre><code>&lt;tr&gt;
      &lt;td&gt;1&lt;/td&gt;
      &lt;td&gt;2&lt;/td&gt;
      &lt;td&gt;3&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td&gt;4&lt;/td&gt;
      &lt;td&gt;5&lt;/td&gt;
      &lt;td&gt;6&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td&gt;7&lt;/td&gt;
      &lt;td&gt;8&lt;/td&gt;
      &lt;td&gt;9&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td&gt;10&lt;/td&gt;
      &lt;td&gt;11&lt;/td&gt;
      &lt;td&gt;12&lt;/td&gt;
  &lt;/tr&gt;
  WebElement test;
  test=driver.findElement(By.xpath("./" +value)); // here /*/*/td[5] is passed as param 
  System.out.println("Values : " +test.getText());
  </code></pre>
  
  <p>I tried <code>/*/*/td[3]</code>  but it just gives me only the first value.</p>
  
  <p>Thanks!</p>