Does Selenium implicit wait always take the entire wait time or can it finish sooner?

后端 未结 3 997
旧巷少年郎
旧巷少年郎 2021-01-06 15:37

Does Selenium implicit wait always take the entire wait time or can it finish sooner? If I set the implicit wait to 10 seconds, could a call to .findElement finish in a few

3条回答
  •  花落未央
    2021-01-06 16:01

    To my knowledge polling period is not 0.5 seconds with implicit wait. It is the case with explicit wait. Explicit wait polls the DOM every 500ms. Implicit wait, if the element is not found on page load waits for the specified time and then checks again after time is run out. If not found it throws an error

提交回复
热议问题