Skip to content

Commit daca2a0

Browse files
committed
docs: add steps for using Playwright GUI tools
1 parent 9257552 commit daca2a0

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

docs/tests/automated-tests.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,21 @@ In `tests/playwright/pytest.ini`, add `--headed` to `addopts`, and run all tests
109109
```bash
110110
docker compose run --rm playwright
111111
```
112+
113+
#### Use Playwright GUI tools
114+
115+
Start a bash session inside the `playwright` container:
116+
117+
```bash
118+
docker compose run --rm playwright /bin/bash
119+
```
120+
121+
From here, you can use the `playwright` CLI and any of the GUI tools it provides. Run `playwright --help` to see different commands you can run.
122+
123+
For example, to launch a Chrome window with a Playwright Inspector attached to it, run:
124+
125+
```bash
126+
playwright cr
127+
```
128+
129+
![Screenshot showing a Chrome window with Playwright Inspector attached to it](img/playwright-inspector.png)
37.3 KB
Loading

0 commit comments

Comments
 (0)