http://stackoverflow.com/questions/19200497/python-selenium-webscraping-nosuchelementexception-not-recognized
Error here:
NameError: name 'NoSuchElementException' is not defined
Googling/documentation came up with nothing...and it strikes me as strange that selenium is fine throwing an exception but can't catch it.
from
selenium.common.exceptions import NoSuchElementException
本文解决了一个在使用Python Selenium进行网页抓取时遇到的问题:NoSuchElementException未被定义。通过引入正确的异常模块,可以有效处理Selenium抛出的NoSuchElementException。
1万+

被折叠的 条评论
为什么被折叠?



