Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

selenium how to handle element not found python

try:
       elem = driver.find_element_by_xpath(".//*[@id='SORM_TB_ACTION0']")
       elem.click()
except nosuchelementexception:
       pass
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #selenium #handle #element #python
ADD COMMENT
Topic
Name
6+6 =