Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ tsconfig.tsbuildinfo
!.yarn/releases
!.yarn/sdks
!.yarn/versions
.playwright-cli
20 changes: 20 additions & 0 deletions packages/replayio/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,26 @@ This CLI will automatically prompt you to log into your Replay account (or to re

The CLI will also prompt you to download the Replay runtime if you have not already done so.

## Browser facade

`replayio` exposes Playwright CLI under the `browser` command:

```bash
replayio browser open https://google.com
replayio browser click "text=Sign in"
replayio browser close
```

`@playwright/cli` is launched with Replay Browser through `PLAYWRIGHT_MCP_EXECUTABLE_PATH`.
You can override the Playwright CLI binary with `REPLAYIO_PLAYWRIGHT_CLI_PATH`.

When `replayio browser close` succeeds, replayio deterministically prints:

- a generated Playwright test assembled from captured `### Ran Playwright code` blocks
- a numbered step list derived from the captured actions

Recordings for the closed browser session are also auto-uploaded when authenticated (`replayio login` or `REPLAY_API_KEY`).

## Contributing

Contributing guide can be found [here](contributing.md).
1 change: 1 addition & 0 deletions packages/replayio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
],
"homepage": "https://github.com/replayio/replay-cli/blob/main/packages/replayio/README.md",
"dependencies": {
"@playwright/cli": "latest",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's not use latest like this, it's a pretty new package (2 weeks!) so I wouldn't be surprised if the interface changes somehow soon

"@replayio/protocol": "^0.71.0",
"@replayio/sourcemap-upload": "workspace:^",
"@types/semver": "^7.5.6",
Expand Down
1 change: 1 addition & 0 deletions packages/replayio/src/bin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import "./commands/info";
import "./commands/list";
import "./commands/login";
import "./commands/logout";
import "./commands/browser";
import "./commands/open";
import "./commands/record";
import "./commands/remove";
Expand Down
Loading
Loading