Skip to content

NoSuchElementException not getting the exception #759

Answered by mdmintz
acpn asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @acpn , the try/except block should be catching exceptions... which line is the test failing on when you run it? Have you tried using except Exception: instead? Is it possible that the test failed before it reached this line? SeleniumBase produces screenshots so that you can verify that you're on the correct page. See the latest_logs/ folder that's created when you run your test. You can also do --html=report.html to generate an html report, which also has screenshots.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@acpn
Comment options

Answer selected by mdmintz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants