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:
For python with input-field is like:
nowText = driver.find_element_by_id("source").get_attribute("value")
print(nowText)
The "Get_Attribute" property doesn't exist, but the "get_attribute" property does:
items = driver.find_elements_by_tag_name("a")
print items
for item in items:
href = item.get_attribute('href')
print href
src = driver.find_element_by_css_selector("img").get_attribute("src")