t.setTestSpeed Method

Specifies the test execution speed. Chainable.

t.setTestSpeed(factor) → this | Promise<any>
Parameter Type Description
factor Number Specifies the test speed. Must be a number between 1 (the fastest) and 0.01 (the slowest).

Tests are run at the maximum speed by default.

If the speed is also specified for an individual action, the action’s speed setting overrides the test speed.


import { Selector } from 'testcafe';


const nameInput = Selector('#developer-name');

test('Test Speed', async t => {
    await t
        .typeText(nameInput, 'Peter')
        .typeText(nameInput, ' Parker');