py+selenium 明明定位不到元素,但卻不報錯或是報錯AttributeError: 'list' object has no attribute 'click'【已解決】

問題:定位不到元素,但卻不報錯或者出現報錯AttributeError: ‘list’ object has no attribute ‘click’ 如圖 或者 解決方法: 將」driver.find_elements_by_xpath「改爲「driver.find_element_by_xpath」即可解決。
相關文章
相關標籤/搜索