首页
学习
活动
专区
圈层
工具
发布

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

举报
领券