I want to run
driver.find_element_by_css_selector("MY_SELECTORS").click()
inside a test, but there are times that the element does not exist. if I did:
return = driver.find_element_by_css_selector("MY_SELECTORS").click()
and the element does not exist, would a value ( like an exception , or boolean FALSE) be returned? I have been reading Docs » Locating Elements, but although it details the error types, its not clear if a value is returned.
Does anyone have experience with this?