Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

selenium exception handling python

from selenium.common.exceptions import NoSuchElementException

try:
    driver.find_element_by_xpath("//span")
except NoSuchElementException:
Source by www.pingshiuanchua.com #
 
PREVIOUS NEXT
Tagged: #selenium #exception #handling #python
ADD COMMENT
Topic
Name
4+1 =