参数 Get_Attribute
不存在, 正确写法是 get_attribute
:
items = driver.find_elements_by_tag_name("a")
print items
for item in items:
href = item.get_attribute('href')
print href```
参数 Get_Attribute
不存在, 正确写法是 get_attribute
:
items = driver.find_elements_by_tag_name("a")
print items
for item in items:
href = item.get_attribute('href')
print href```