selenium - Will the Implicit wait will move on if findElement action is complete? -


implicit wait : if wait set, wait specified amount of time each findelement/findelements call. throw exception if action not complete.

assume set implicit wait 10 secs. question selenium move on next step if findelement action complete before 10 secs?

yes. setting implicit wait causes driver object to wait set time if element looking not found immediately. driver object keeps polling dom every 500 milliseconds until finds element or time-out expires.

this explanation official selenium documentation page:

an implicit wait tell webdriver poll dom amount of time when trying find element or elements if not available. default setting 0. once set, implicit wait set life of webdriver object instance.

so, answer question in short, yes continues executing next steps finds element(s) looking for. may understand case simple experiment @sircapsalot has shown in answer.


Comments

Popular posts from this blog

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -