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.

Example

import { Selector } from 'testcafe';

fixture`TestController.setTestSpeed`
    .page`https://devexpress.github.io/testcafe/example/`;

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

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

Why We Use Cookies

This site uses cookies to make your browsing experience more convenient and personal. Cookies store useful information on your computer to help us improve the efficiency and relevance of our site for you. In some cases, they are essential to making the site work properly. By accessing this site, you consent to the use of cookies. For more information, refer to DevExpress privacy policy and cookie policy.