Skip to content

Commit

Permalink
Enhance README (DevExpress#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
VasilyStrelyaev authored and AndreyBelym committed Oct 8, 2019
1 parent 93e310b commit c1a5191
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,56 @@ This repository contains sample test files that help you learn how to use TestCa

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:

```sh
git clone https://github.com/DevExpress/testcafe-examples.git
```

2. Go to the project's root directory:
```sh
cd testcafe-examples
```
3. Install the dependencies:
```sh
npm install
```
## Usage
Use the `npm test` script to run all tests in Chrome and Firefox.
```sh
npm test
```
You can use TestCafe [CLI options](https://devexpress.github.io/testcafe/documentation/using-testcafe/command-line-interface.html) to specify different [target browsers](https://devexpress.github.io/testcafe/documentation/using-testcafe/command-line-interface.html#browser-list) or run tests from a specific [directory](https://devexpress.github.io/testcafe/documentation/using-testcafe/command-line-interface.html#file-pathglob-pattern).
To run tests in Chrome only, execute the following command:
```sh
npx testcafe chrome examples
```
The following command runs the examples from the `client-scripts` directory:
```sh
npx testcafe chrome examples/client-scripts
```
See [Command Line Interface](https://devexpress.github.io/testcafe/documentation/using-testcafe/command-line-interface.html) 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:
* [Inject Custom Client Scripts](examples/client-scripts/)
* [Access Element Properties](examples/element-properties/)
* [Manipulate the Tested Page](examples/page-manipulation/)

0 comments on commit c1a5191

Please sign in to comment.