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.
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to