if element not found in selenium python code example
Example: selenium how to handle element not found python
try:
elem = driver.find_element_by_xpath(".//*[@id='SORM_TB_ACTION0']")
elem.click()
except nosuchelementexception:
pass