selenium 'NoSuchElementException'

来源:互联网 发布:网络营销推广软件 编辑:程序博客网 时间:2024/06/13 22:59

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

0 0
原创粉丝点击