web pages could either has element with id=container_53201 or id= container_24206, but not both. I tried to verify each page has which of the element. but the following code caused the error:
No such element [id= container_24206]
if the web page has the other element. Please advise how to fix this issue.
if driver.find_element_by_id('container_53201'):
print('Single Match')
elif driver.find_element_by_id('container_24206'):
print('multiple Match')
else:
print('Could not find')