[Tutor] really basic question..
bruce
badouglas at gmail.com
Sat Aug 5 11:48:58 EDT 2017
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 <badouglas at 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.
More information about the Tutor
mailing list