Python-‘list‘ object has no attribute ‘click‘原因之一

通过 driver.find_elements_by_xpath('//*[@id="s-usersetting-top"]').click()执行报错:
driver.find_element_by_xpath('//*[@id="s-usersetting-top"]').click()
是因为element错误写成了elements,多了s................

 分享是一种美德

Python-‘list‘ object has no attribute ‘click‘原因之一最先出现在Python成神之路

版权声明:
作者:Alex
链接:https://www.techfm.club/p/21235.html
来源:TechFM
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>