document.getElementById("link")[0].getAttribute("href");
document.find_element_by_xpath("//example").getAttribute('href')