I am trying to get value of HREF attribute but always it says incorrect Xpath.
Html Code :
I am trying code :
WebElement Link = driver.findElement(By.xpath("//table[contains(@class,'display')]/thead/tbody/tr/td/a"));
System.out.println(Link.getAttribute("href"));
I tried many xpath but none of them worked.

//table[contains(@class,'display')]/tbody/tr/td/a? 2) There might be other elements which match that expression, are you sure you've got the right element addressed? 3) Who says incorrect Xpath and how (i.e. any more error details)? 4) Please show use the code, where you try to get value from href attribute.