Stalled Selenium test

Asked

Viewed 86 times

0

I have a problem that Selenium stops when a Download appears on my screen (My application that is being tested also for). It stands forever and not from time-out.

I wonder if you have how to put a time limit to run a test?

2 answers

1

Take a look at that link.

He teaches about methods .implicit_wait(), .explicit_wait() and .fluent_wait().

Has this topic in So_en tbm that can help you.

Another idea, for example, is to use a estrutura de repetição with a time.sleep() within it...

0

I usually use the while

this is an example in python, but only adapt the syntax to the language you are using.

while True:
    try:
       time.sleep(1)
       #faz um teste para saber se já passou 
       break
    except:
       # retorna o tipo do erro

Browser other questions tagged

You are not signed in. Login or sign up in order to post.