
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
我正在使用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