# @recordreplay/playwright

> A high-level API to automate web browsers

Latest version **1.18.3** (published 2022-02-17) · Apache-2.0 license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @recordreplay/playwright
pnpm add @recordreplay/playwright
yarn add @recordreplay/playwright
bun add @recordreplay/playwright
```

Provides the command `replay-playwright`.

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.18.3 |
| Published | 2022-02-17 |
| First published | 2021-06-29 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=12 |
| Dependencies | 16 |
| Unpacked size | 10.7 MB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Microsoft Corporation |
| Maintainers | gideonred, ryanjduffy, jasonlaster11, dmiller_replay, holger_replay, bhackett1024, loganfsmyth |

## Links

- npm: https://www.npmjs.com/package/@recordreplay/playwright
- Repository: https://github.com/RecordReplay/playwright
- Homepage: https://playwright.dev
- Issues: https://github.com/RecordReplay/playwright/issues
- npm.io page: https://npm.io/package/@recordreplay/playwright

## Dependencies (16)

- [ws](https://npm.io/package/ws.md) ^7.4.6
- [mime](https://npm.io/package/mime.md) ^2.4.6
- [yazl](https://npm.io/package/yazl.md) ^2.5.1
- [debug](https://npm.io/package/debug.md) ^4.1.1
- [pngjs](https://npm.io/package/pngjs.md) ^5.0.0
- [yauzl](https://npm.io/package/yauzl.md) ^2.10.0
- [rimraf](https://npm.io/package/rimraf.md) ^3.0.2
- [jpeg-js](https://npm.io/package/jpeg-js.md) ^0.4.2
- [progress](https://npm.io/package/progress.md) ^2.0.3
- [commander](https://npm.io/package/commander.md) ^8.2.0
- [extract-zip](https://npm.io/package/extract-zip.md) ^2.0.1
- [stack-utils](https://npm.io/package/stack-utils.md) ^2.0.3
- [proxy-from-env](https://npm.io/package/proxy-from-env.md) ^1.1.0
- [proper-lockfile](https://npm.io/package/proper-lockfile.md) ^4.1.1
- [https-proxy-agent](https://npm.io/package/https-proxy-agent.md) ^5.0.0
- [socks-proxy-agent](https://npm.io/package/socks-proxy-agent.md) ^6.1.0

## Recent versions

- 1.18.3 (latest) — 2022-02-17
- 1.18.2 — 2022-02-16
- 1.18.1 — 2022-02-10
- 1.10.7 — 2022-02-07
- 1.10.6 — 2021-09-15
- 1.10.5 — 2021-07-06
- 1.10.4 — 2021-07-02
- 1.10.3 — 2021-06-29
- 1.10.2 — 2021-06-29
- 1.10.1 — 2021-06-29
- 1.10.0 — 2021-06-29

## README

# playwright

[Replay](https://replay.io) enabled fork of the [Playwright](https://playwright.dev) library.

## Overview

This is an alternative to Playwright that uses replay enabled browsers where possible to create replays of test runs. It can be added to an existing Playwright test suite or be used as a standalone.

## Installation

`npm i @recordreplay/playwright`

## Usage

### With `playwright/test`

After installing, run `npx @recordreplay/playwright test` to execute the tests and record with Playwright. Only test runs in supported browsers (see below) will be recorded with Replay.

You will still use your existing `@playwright/test` imports for your test files and configuration.

### Standalone

Use `@recordreplay/playwright` in require/import statements and write your tests as a function that uses `playwright.[browser].launch()`. 

**Example:**

```
const playwright = require("playwright");

(async function () {
  const browser = await playwright.firefox.launch({
    headless: false,
  });
  const context = await browser.newContext();
  const page = await context.newPage();

  await page.goto("https://unsplash.com/");

  await page.close();
  await context.close();
  await browser.close();
})();
```

You can then use `node testfile.js` to execute and record your tests without needing to also install `@playwright/test`.

### Managing Replay recordings

Replays are saved locally to `~/.replay`. After running any playwright scripts, use the [replay-recordings](https://www.npmjs.com/package/@recordreplay/recordings-cli) CLI tool to manage and upload the recordings.

## Supported Platforms

The currently supported platforms/browsers are below.  On other platforms/browsers, the regular non-recording version of the browser will be used.

* macOS: firefox
* linux: firefox, chromium

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