Obtenir un attribut HREF JavaScript
document.getElementById("link")[0].getAttribute("href");
Evil Eel
document.getElementById("link")[0].getAttribute("href");
//Selects all links which have href='http://google.com'
document.querySelectorAll("a[href='http://google.com']");
document.find_element_by_xpath("//example").getAttribute('href')