I'm using Selenium webdriver (chrome) with Python, I'm trying to get the href from all the links on the webpage. When I try the following:
items = driver.find_elements_by_tag_name("a")
print items
for item in items:
href = item.Get_Attribute('href')
print href
It manages to get all the links, but on get_attribute I get an error:
'WebElement' object has no attribute 'Get_Attribute'
Though everywhere I looked it seems like it should work.