[Tutor] really basic question..
bruce
badouglas at gmail.com
Sat Aug 5 11:44:03 EDT 2017
Hey guys.
A really basic question. I have the following:
try:
element = WebDriverWait(driver,
100).until(EC.presence_of_element_located((By.ID,
"remarketingStoreId")))
except TimeoutException:
driver.close()
I was wondering can I do something like the following to handle
"multiple" exceptions? Ie, have an "except" block that catches all
issues other than the specific TimeoutException.
try:
element = WebDriverWait(driver,
100).until(EC.presence_of_element_located((By.ID,
"remarketingStoreId")))
except TimeoutException:
driver.close()
except :
driver.close()
I've looked all over SO, as well as the net in general. I might have
ust missed what I was looking for though.
Comments?? Thanks much.
More information about the Tutor
mailing list