Skip to content

marliz97/testcafe-examples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TestCafe Examples

This repository contains sample test files that help you learn how to use TestCafe.

Here you will find examples that demonstrate the basic usage, advanced features, edge cases, as well as tips and tricks.

Installation

  1. Clone this repository:

    git clone https://github.com/DevExpress/testcafe-examples.git
  2. Go to the project's root directory:

    cd testcafe-examples
  3. Install the dependencies:

    npm install

Usage

Use the npm test script to run all tests in Chrome and Firefox.

npm test

You can use TestCafe CLI options to specify different target browsers or run tests from a specific directory.

To run tests in Chrome only, execute the following command:

npx testcafe chrome examples

The following command runs the examples from the client-scripts directory:

npx testcafe chrome examples/client-scripts

See Command Line Interface for more information.

Examples in This Repository

We are in the process of filling this repository with more examples.

The examples are organized in the following sections:

About

Ready-to-run examples for TestCafe

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%