- When we are waiting for an element to be available in DOM after async operation, we should use
find*
- When we are waiting for an element to be removed in DOM after async operation, we should use
waitForElementToBeRemoved
So, when should we use waitFor
? What is the specific use case for it?
Seems like pretty much all the stuff could be done without using waitFor
or am I missing some use case?
I tried googling but didn’t find any concrete use case for waitFor
Ps. I know both find*
and waitForElementToBeRemoved
use waitFor
under the hood