Maybe I am missing something very basic here, but my "except" block doesn't catch the exception it's intended for when using selenium. For example:
from selenium.common.exceptions import NoSuchElementException try: driver.find_element_by_xpath(*some_path*) except NoSuchElementException: pass
This still breaks with a NoSuchElementException if the element isn't there. How is this possible?