TestCafe runner.video is not a function at createTestCafe.then.then.remoteConnection


I’m facing this issue while trying to create test videos using the TestCase Javascript API.

I’m working with testcafe version 0.22.0 and I already have the prerequisites the request in their documentation.

Basically, the issue is video function doesn’t exist in my runner object.


createTestCafe('localhost', 1337, 1338)
    .then(testcafe => {
        runner = testcafe.createRunner();
        return testcafe.createBrowserConnection();
    .then(remoteConnection => {
        // Outputs remoteConnection.url so that it can be visited from the remote browser.
                .video(artifactsPath, true)
                .src(specsPath + '/run-animation.spec.ts')
                .then(failedCount => {
                    console.log('Error: ', failedCount);
                .catch(error => {
                    console.log('Error: ', error);

5 thoughts on “TestCafe runner.video is not a function at createTestCafe.then.then.remoteConnection”

Leave a Comment