# @qavajs/steps-testcafe

> steps to interact with testcafe

Latest version **0.2.0** (published 2023-05-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install @qavajs/steps-testcafe
pnpm add @qavajs/steps-testcafe
yarn add @qavajs/steps-testcafe
bun add @qavajs/steps-testcafe
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2023-05-31 |
| First published | 2023-05-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 140.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Maintainers | kirill_bogdanets, alexgalichenko |

## Links

- npm: https://www.npmjs.com/package/@qavajs/steps-testcafe
- Repository: https://github.com/qavajs/steps-testcafe
- Homepage: https://github.com/qavajs/steps-testcafe#readme
- Issues: https://github.com/qavajs/steps-testcafe/issues
- npm.io page: https://npm.io/package/@qavajs/steps-testcafe

## Dependencies (2)

- [testcafe](https://npm.io/package/testcafe.md) ^2.6.1
- [@qavajs/validation](https://npm.io/package/@qavajs/validation.md) ^0.0.5

## Recent versions

- 0.2.0 (latest) — 2023-05-31
- 0.1.2 — 2023-05-29
- 0.1.1 — 2023-05-29
- 0.1.0 — 2023-05-29

## README

[![npm version](https://badge.fury.io/js/@qavajs%2Fsteps-testcafe.svg)](https://badge.fury.io/js/@qavajs%2Fsteps-testcafe)

# @qavajs/steps-testcafe
Step library to work with testcafe in qavajs framework

## Installation

`npm install @qavajs/steps-testcafe`

## Configuration
```javascript
const App = require('./page_object');
module.exports = {
    default: {
        require: [
            'node_modules/@qavajs/steps-testcafe/index.js'
        ],
        browser: {
            timeout: {
                present: 10000,
                visible: 20000,
                page: 10000
            },
            capabilities: {
                browser: 'chrome'
            }
        },
        pageObject: new App()
    }
}
```

## Screenshot strategy
@qavajs/steps-testcafe has build-in capability to take screenshot on particular event. If you need to add 
screenshot to your report add _screenshot_ property to profile config.
Supported events:
- onFail
- beforeStep
- afterStep

```javascript
module.exports = {
    default: {
        screenshot: ['onFail']
    }
}
```

## Limitations
- I save value of '<cookieName>' cookie as 'cookie' is not working in hammerhead proxy mode

---
_Source: https://npm.io/package/@qavajs/steps-testcafe · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
