Skip to main content
1 of 2
ColinWa
  • 101
  • 1

It works and then stops execution of subsequent code. So i tried Promises

    this.driverWait = async function (explicitWaitMS) {
        // create a new promise inside of the async function
        let promise = new Promise((resolve, reject) => {
            setTimeout(() => resolve(true), explicitWaitMS) // resolve
        });

        // wait for the promise to resolve
        await promise;
    }
ColinWa
  • 101
  • 1