title: Difference in xpath in selenium webdriver?
body: <pre><code>WebElement we4=driver.findElement(By.xpath("/html/body/div/table/tbody/tr[2]/td[2]/div/div/div/div[4]/ul/li[3]/a"));
  
  WebElement we3=driver.findElement(By.xpath("//*[@id='nav_cat_3']"));
  </code></pre>
  
  <p>While copying the xpath by firebug, both the xpath are coming alternatively. What is the differenence between them though both are working?</p>