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