Plain English to Playwright Python Automation
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file auto_playwright-0.2.0.tar.gz.
File metadata
- Download URL: auto_playwright-0.2.0.tar.gz
- Upload date:
- Size: 40.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fddbf4e553b37271cb1a5597c534e63f5c66057bfe03e5ddcab6a11ace0a4303
|
|
| MD5 |
971bd08eade3649f708ea6653cbf1da0
|
|
| BLAKE2b-256 |
6b10a298fabc1a903ce4437733e291d519a57c275a4e798afe899bc3207c7c7e
|
File details
Details for the file auto_playwright-0.2.0-py3-none-any.whl.
File metadata
- Download URL: auto_playwright-0.2.0-py3-none-any.whl
- Upload date:
- Size: 52.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e8ddf38359a0cedde5364df301f22165acc5c4f8ec19a01ab13a69317864bdc
|
|
| MD5 |
99bb5686ec995f02bafd869b54b3c5ea
|
|
| BLAKE2b-256 |
617575778a1b4f590ef2d8d8236207205e5d96b6f447d58a648c4275b2ca3084
|