Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python exception element not found

from selenium.common.exceptions import NoSuchElementException

try:
    if driver.find_element_by_class_name(test_element_class_name).is_displayed():
        print('found')
except NoSuchElementException:
    pass
 
PREVIOUS NEXT
Tagged: #python #exception #element
ADD COMMENT
Topic
Name
8+3 =