auto-playwright
Plain-English .flow files → Playwright (Python) runner.
Install
Poetry
poetry install
Dev tools (pytest/formatters) via extras:
poetry install --extras dev
# or
poetry install --all-extras
pip
pip install .
# Dev tools
pip install '.[dev]'
Run
poetry run ap examples/amazon_search.flow
Safety / Logging env vars
-
AUTO_PLAYWRIGHT_ALLOWED_DOMAINS(optional): comma-separated hostname allowlist for top-level navigations.- Supports exact hosts (
example.com) and wildcards (*.example.com). - If unset/empty, no allowlist is enforced.
- Supports exact hosts (
-
AUTO_PLAYWRIGHT_POLICY_FILE(optional): YAML policy file path.allowed_domains: additional domain allowlist.blocked_actions: DSL actions to block globally (for governance), e.g.["sleep"].- Example policy:
tools/runtime_policy.example.yaml
-
AUTO_PLAYWRIGHT_PERSISTENT_PROFILE(optional, default0): use persistent browser profile (1/true) vs isolated ephemeral context (default). -
AUTO_PLAYWRIGHT_PROFILE_DIR(optional): profile path used when persistent profile is enabled. -
Logs and
run_report.*are automatically redacted for common secrets (tokens/keys in env + URL query params).
Run a directory (batch mode):
poetry run ap examples/
Artifacts / Output layout
Each run writes all artifacts under:
output/<flow>/<timestamp>/
run_report.json
run_report.html
artifacts/
trace.zip (optional)
video/ (optional)
errors/error_step_*.png
code/ (debug/dump-code)
final/ (final healed test)
flows/ (generated flow, if different)
Debug / code generation
Generate both plain + intelligent code and keep the browser open:
poetry run ap examples/amazon_search.flow --debug
Generate code only (no execution):
poetry run ap examples/amazon_search.flow --dump-code
Tracing / Video / Screenshots
poetry run ap examples/amazon_search.flow --trace on
poetry run ap examples/amazon_search.flow --trace on-failure
poetry run ap examples/amazon_search.flow --video on
poetry run ap examples/amazon_search.flow --video on-failure
# enabled by default; use --no-screenshot-on-failure to disable
poetry run ap examples/amazon_search.flow --no-screenshot-on-failure
Tests (unit / smoke)
No real browser/network is used in tests.
poetry run pytest
Release files for auto-playwright 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| auto_playwright-0.2.0.tar.gz | 40.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| auto_playwright-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 92.9 kB
Release files / auto_playwright-0.2.0.tar.gz
| Download URL | auto_playwright-0.2.0.tar.gz |
|---|---|
| Size | 40.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fddbf4e553b37271cb1a5597c534e63f5c66057bfe03e5ddcab6a11ace0a4303
|
|
BLAKE2b-256 checksum How to use checksums |
6b10a298fabc1a903ce4437733e291d519a57c275a4e798afe899bc3207c7c7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.4
|
Release files / auto_playwright-0.2.0-py3-none-any.whl
| Download URL | auto_playwright-0.2.0-py3-none-any.whl |
|---|---|
| Size | 52.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2e8ddf38359a0cedde5364df301f22165acc5c4f8ec19a01ab13a69317864bdc
|
|
BLAKE2b-256 checksum How to use checksums |
617575778a1b4f590ef2d8d8236207205e5d96b6f447d58a648c4275b2ca3084
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.4
|