1. 20
    Leverage the waitFor Async Util to Await for an Assertion to Pass
    2m

Leverage the waitFor Async Util to Await for an Assertion to Pass

Share this video with your friends

Send Tweet

After querying and interacting with elements come assertions. Assertions are really important to assert that your test case really works. Sometimes due to the async nature of your code, your assertion might need to wait some time until it passes.

In this lesson, we will learn how to wait for a period of time until our assertion passes by using the waitFor util.