Get Href Of Element With Selenium Python

October 2, 2017
.get_attribute(“href”)
el = driver.find_element_by_css_selector("a.link")
if el:
    url = el.get_attribute("href")
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.