py+selenium 报错NameError: name 'NoSuchElementException' is not defined【已解决】
生活随笔
收集整理的這篇文章主要介紹了
py+selenium 报错NameError: name 'NoSuchElementException' is not defined【已解决】
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
?報(bào)錯(cuò):NameError: name 'NoSuchElementException' is not defined
?如圖
解決方法:
頭部加一句:from selenium.common.exceptions import NoSuchElementException 可解決
?
?
參考:https://stackoverflow.com/questions/19200497/python-selenium-webscraping-nosuchelementexception-not-recognized
轉(zhuǎn)載于:https://www.cnblogs.com/4wheel/p/9342143.html
總結(jié)
以上是生活随笔為你收集整理的py+selenium 报错NameError: name 'NoSuchElementException' is not defined【已解决】的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: java 获取计算机内存
- 下一篇: NH4HCO3中氮含量34%你是怎么计算