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);

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

  1. Pingback: keto box
  2. Hi, i read your blog occasionally and i own a similar one
    and i was just wondering if you get a lot of spam remarks?
    If so how do you protect against it, any plugin or anything you can advise?
    I get so much lately it’s driving me insane so any assistance is very
    much appreciated.

  3. Hey there! I just want to offer you a huge thumbs up
    for the great information you have got right here on this post.
    I will be coming back to your blog for more soon.

  4. Hello There. I found your blog using msn. This is
    a really well written article. I’ll make sure to bookmark
    it and return to read more of your useful info.

    Thanks for the post. I’ll certainly comeback.