I implemented a loop with a counter to check elements are found repeatedly until 5 seconds or whatever Time I set. Why because I knew for one that selenium still has to poll/Scan the dom to find the element. I am not sure if selenium automatically is notified if there is a mutation in the dom itself.
I believe Implicit and explicit wait also does the same as I tried. It has to do repeated find operations till given timeout value to find if a element exists. But I rather wanted granular control over how quickly I perform the repeated scan so I can find it faster.
My Question is
- is my assumptions correct ?.
- Does implicit and explicit wait does repeated find, delayed by a certain default wait time before it does the find operation again?
- Does it mean theoretically we can deprecate Explicit wait and implicit wait due the availability of fluent waits.?
- Is there a default polling time in Implicit and explicit waits?.