MCPcopy Index your code
hub / github.com/DevExpress/testcafe

github.com/DevExpress/testcafe @v3.7.5

repository ↗ · DeepWiki ↗ · release v3.7.5 ↗ · Ask this repo → · + Follow
6,424 symbols 19,029 edges 1,880 files 146 documented · 2% 3 cross-repo links updated 11d agov3.7.5 · 2026-06-16★ 9,90813 open issues
README

Try TestCafe Studio IDE

<a href="https://testcafe.io">
    <img src="https://raw.githubusercontent.com/DevExpress/testcafe/master/media/testcafe-logo.svg?sanitize=true" alt="testcafe" />
</a>

Tests Test Dependencies NPM Version

Automate end-to-end web testing with TestCafe, a Node.js-based testing framework.

TestCafe is free and as easy to use as 1-2-3:

1. Write your tests in JS or TypeScript.

2. Execute your tests.

3. View test results.

Homepage   •   Documentation   •   FAQ   •   Support

  • Works on all popular environments: TestCafe runs on Windows, MacOS, and Linux. It supports desktop, mobile, remote and cloud browsers (UI or headless).
  • 1 minute to set up: You do not need WebDriver or any other testing software. Install TestCafe with one command, and you are ready to test: npm install -g testcafe
  • Free and open source: TestCafe is free to use under the MIT license. Plugins provide custom reports, integration with other tools, launching tests from IDE, etc. You can use the plugins made by the GitHub community or create your own.

Install TestCafe and Run a Test

Running a sample test in Safari

Table of contents

Features

Stable tests and no manual timeouts

TestCafe automatically waits for page loads and XHRs before the test starts and after each action. It also features smart test actions and assertions that wait for page elements to appear. You can change the maximum wait time. If elements load faster, tests skip the timeout and continue.

Rapid test development tool

When you enable live mode, changes to test code immediately restart the test, and you instantly see the results.

Latest JS and TypeScript support

TestCafe supports the most recent JavaScript-related features, including ES2017 (async/await). You can also use TypeScript if you prefer a strongly typed language instead.

Detects JS errors in your code

TestCafe reports JS errors that it locates on a given webpage. Tests automatically fail if TestCafe encounters such errors.

You can, however, disable this option.

Concurrent test launch

TestCafe can open multiple instances of the same browser and run parallel tests (to help decrease test execution time).

PageObject pattern support

The TestCafe's Test API includes a high-level selector library, assertions, etc. You can combine them to implement readable tests with the PageObject pattern.

const macOSInput = Selector('.column').find('label').withText('MacOS').child('input');

Easy to include in a continuous integration system

You can run TestCafe from a console, and its reports can be viewed within CI systems (TeamCity, Jenkins, Travis & etc.)

Love TestCafe Open-source Edition? Want to Record Tests without Writing JavaScript or TypeScript Code?

TestCafe Studio: IDE for End-to-End Web Testing

TestCafe is the perfect choice for JavaScript developers and experienced Q&A teams. If you’d like to delegate testing to QA engineers and are looking for a code-free way to record and maintain tests compatible with your existing infrastructure, check out TestCafe Studio - a testing IDE built atop the open-source version of TestCafe.

Review the following article to learn how TestCafe Studio can fit into any workflow: What's Better than TestCafe? TestCafe Studio.

Get Started with TestCafe Studio

Record and Run a Test in TestCafe Studio

Getting Started

Installation

Ensure that you run Node.js version 16 or higher, and run the following command:

npm install -g testcafe

Creating the Test

For this simple example, we will test the following page: https://devexpress.github.io/testcafe/example

Create a .js or .ts file on your computer. Remember that a .js or .ts file must maintain a specific structure: tests must be organized into fixtures. You can paste the following code to see the test in action:

import { Selector } from 'testcafe'; // first import testcafe selectors

fixture `Getting Started`// declare the fixture
    .page `https://devexpress.github.io/testcafe/example`;  // specify the start page


//then create a test and place your code within it
test('My first test', async t => {
    await t
        .typeText('#developer-name', 'John Smith')
        .click('#submit-button')

        // Use the assertion to check if actual header text equals expected text
        .expect(Selector('#article-header').innerText).eql('Thank you, John Smith!');
});

Running the Test

Call the following command in a command shell. Specify the target browser and file path.

testcafe chrome test1.js

TestCafe opens the browser and begins test execution.

Important: Make certain the browser tab that runs tests stays active. Do not minimize the browser window. Inactive tabs and minimized browser windows switch to lower resource consumption mode. In low consumption mode, tests may not execute correctly.

Viewing the Results

TestCafe outputs results into a command shell by default. See Reporters for more information. You can also use plugins to customize reports.

Test Report

Read the Getting Started page for additional assistance.

Documentation

Visit the following webpage to review our online help system: Documentation.

Get Help

Join the TestCafe community on Stack Overflow. Ask and answer questions using the TestCafe tag.

Issue Tracker

Use our GitHub issues page to report bugs and suggest enhancements.

Stay in Touch

Follow us on Twitter. We post TestCafe news and updates.

Contributing

Read our Contributing Guide to learn how to contribute to the project.

To create your own plugin for TestCafe, you can use these plugin generators:

If you want your plugin to be listed below, send us a note in a Github issue.

Thanks to all of our contributors – We appreciate your commitment to the TestCafe community.

aha-oretama ai aleks-pro Aleksey28 AlexanderMoiseev AlexanderMoskovkin
aha-oretama ai aleks-pro Aleksey28 AlexanderMoiseev AlexanderMoskovkin
alexey-lin AlexKamaev alexphilin AlexSkorkin alexwybraniec AnastasiaIvanova8
alexey-lin AlexKamaev alexphilin AlexSkorkin alexwybraniec AnastasiaIvanova8
andrewbranch AndreyBelym AndyWendt AnnaKondratova anthophobiac Artem-Babich
andrewbranch AndreyBelym AndyWendt AnnaKondratova anthophobiac Artem-Babich

Arthy000 |augustomezencio-hotmart |[<img alt="bdwain" src="https://ava

Extension points exported contracts — how you extend this code

Automation (Interface)
(no doc) [28 implementers]
src/client/automation/types.d.ts
Transform (Interface)
(no doc) [9 implementers]
src/utils/replicator/index.d.ts
RequestHook (Interface)
(no doc) [16 implementers]
ts-defs-src/test-api/request-hook.d.ts
CookieProvider (Interface)
(no doc) [4 implementers]
src/test-run/cookies/base.ts
BrowserConnection (Interface)
(no doc) [2 implementers]
ts-defs-src/runner-api/options.d.ts
ProviderMethods (Interface)
(no doc) [1 implementers]
src/browser/provider/built-in/dedicated/chrome/interfaces.ts
TestCafe (Interface)
(no doc) [1 implementers]
src/cli/remotes-wizard.ts
Promise (Interface)
(no doc) [1 implementers]
@types/pinkie/index.d.ts

Core symbols most depended-on inside this repo

eql
called by 3003
ts-defs-src/test-api/assertions.d.ts
expect
called by 1729
ts-defs-src/test-api/test-controller.d.ts
then
called by 1434
@types/pinkie/index.d.ts
runTests
called by 1226
test/functional/fixtures/regression/gh-7925/test.js
click
called by 898
ts-defs-src/test-api/test-controller.d.ts
catch
called by 622
@types/pinkie/index.d.ts
contains
called by 615
ts-defs-src/test-api/assertions.d.ts
page
called by 471
test/server/data/test-suites/typescript-parser-smoke/testfile2.ts

Shape

Method 2,945
Function 1,818
Class 1,336
Interface 298
Enum 27

Languages

TypeScript100%

Modules by API surface

src/test-run/commands/actions.js200 symbols
src/shared/errors/index.js183 symbols
src/client/driver/driver.js136 symbols
src/errors/test-run/index.js135 symbols
src/test-run/index.ts109 symbols
src/test-run/commands/actions.d.ts95 symbols
src/test-run/commands/options.js88 symbols
src/api/test-controller/index.js76 symbols
src/browser/connection/index.ts67 symbols
src/runner/index.js64 symbols
ts-defs-src/test-api/test-controller.d.ts58 symbols
src/client/driver/driver-link/messages.js57 symbols

Dependencies from manifests, versioned

@babel/core7.23.2 · 1×
@babel/plugin-proposal-decorators7.23.2 · 1×
@babel/plugin-syntax-dynamic-import7.8.3 · 1×
@babel/plugin-syntax-import-meta7.10.4 · 1×
@babel/plugin-transform-async-generator-functions7.25.4 · 1×
@babel/plugin-transform-async-to-generator7.22.5 · 1×
@babel/plugin-transform-class-properties7.25.4 · 1×
@babel/plugin-transform-class-static-block7.24.7 · 1×
@babel/plugin-transform-exponentiation-operator7.22.5 · 1×
@babel/plugin-transform-for-of7.22.15 · 1×
@babel/plugin-transform-object-rest-spread7.24.7 · 1×
@babel/plugin-transform-private-methods7.25.4 · 1×

For agents

$ claude mcp add testcafe \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact