Regarding combining Implicit wait and Explicit wait

154 views Asked by At

This was one of the interview questions.

If the Implicit wait is say say 20 seconds and the explicit wait is say 10 seconds for a webelement say loc1

What will happen say if the weblement is not locatable in the first 20 seconds for which there is explicit wait of 10 seconds, a)will it first wait for 20 seconds as that is the value of implicit wait and then again wait for 10 more seconds before throwing an error element not found or? b) will it throw an error in the first 20 seconds of implicit wait only if it is not able to find the element? c) Is it ok to use both Implicit wait and explicit wait together ,, are there any problems in combining them both.

1

There are 1 answers

0
pmadhu On