python – Selenium’WebElement’对象没有属性’Get_Attribute’

python – Selenium’WebElement’对象没有属性’Get_Attribute’

我正在使用Selenium webdriver(chrome)和 Python,试图从页面上的所有链接获取href.当我尝试以下内容时: items = driver.find_elements_by_tag_name(a)print itemsfor item in items: href = item.Get_Attribute(href) print href

联系我们

联系我们

0577-28828765

在线咨询: QQ交谈

邮箱: xwei067@foxmail.com

工作时间:周一至周五,9:00-17:30,节假日休息

返回顶部