As per the xpath
you shared to get all the "href" attributes you can use the following code block :
List<WebElement> list = d.findElements(By.xpath("//form[@name='form1']/table/tbody/tr[last()]/td/a"));
for(WebElement e : list)
System.out.println(e.getAttribute("href"));
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…