Lord... redid a search just now. found a bunch of sites that said it's doable.. embarrased
Not sure what I was looking for earlier.. need r u m! On Sat, Aug 5, 2017 at 11:44 AM, bruce <badoug...@gmail.com> wrote: > 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