Skip to content Skip to sidebar Skip to footer

How To Continue The Intern Test Once Timeout For Leadfoot/session#executeasync Calls Has Reached

There are array of URLs to load within an application. A page ready event is fired once the page load. However, when running on sauce labs, the event does not fire on a random page

Solution 1:

You can use a catch callback after the executeAsync to consume the error, although if the ready event can be skipped, is it actually necessary to the test?

You should also return the result of any Command chains created within a then callback to ensure the asynchronous chain continues properly. Otherwise, the outer Command chain will continue without waiting for the executeAsync to complete.

return remote.executeAsync(function (done) {
    ...
}).catch(function (error) {
    // Do nothing here to consume the error, or rethrow it to have the test fail.
})

Post a Comment for "How To Continue The Intern Test Once Timeout For Leadfoot/session#executeasync Calls Has Reached"