Skip to main content

Pomelo PW

CI PyPI GitHub Release

English | 简体中文

Pomelo PW is a Playwright-powered CLI for browser automation. It runs declarative YAML flows, so browser checks can live alongside application code without requiring a custom test harness.

It is intended for repeatable UI checks, scripted workflows, visual comparisons, and agent-assisted browser tasks. Flows validate their parameters before execution and collect screenshots, page snapshots, console errors, and network failures when a step fails.

What It Provides

  • YAML browser flows: navigation, forms, waits, screenshots, and login-state reuse
  • Typed runtime data, DOM extraction, session HTTP requests, conditions, iteration, polling, and assertions
  • Retries, data-driven runs, structured reports, and screenshot baseline comparison
  • CLI, Python package integration, and native plugins for Claude Code, Codex, and Grok Build

Install

The Python package requires Python 3.12+. Install it with uv:

uv tool install pomelo-pw
pomelo-pw install

The package is available on PyPI. Standalone Windows, macOS, and Linux executables are available from GitHub Releases. See the usage guide for browser selection, optional dependencies, and package integration.

Quick Start

Create smoke.yaml:

name: example-smoke
variables:
  base_url: "https://the-internet.herokuapp.com"
steps:
  - type: navigate
    url: "{{base_url}}"
  - type: screenshot
    file: homepage.png

Validate and run:

pomelo-pw validate smoke.yaml
pomelo-pw run smoke.yaml --headless

Artifacts are written to smoke/ under the working directory by default. Use -o <directory> to override the output location or --var key=value to override flow variables.

Documentation

Document Contents
Usage guide CLI, authoring flows, login-state reuse, Python API, and common run options
Flow reference Step overview, data references, conditions, waits, polling, requests, extraction, and reports
Examples Runnable YAML, prerequisites, and combined workflows
Development guide Development setup, checks, plugin synchronization, builds, and releases
Architecture Internal modules, execution lifecycle, scopes, retries, and timeout boundaries (Chinese)
Agent skill Agent instructions and flow templates

License

MIT

Metadata

Release files for pomelo-pw 0.28.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pomelo-pw 0.28.4
File Size Uploaded
pomelo_pw-0.28.4.tar.gz 44.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pomelo-pw 0.28.4
File Interpreter ABI Platform
pomelo_pw-0.28.4-py3-none-any.whl Python 3 none any Details

Total release size: 111.4 kB

Release files / pomelo_pw-0.28.4.tar.gz

Download URL pomelo_pw-0.28.4.tar.gz
Size 44.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e54f5e76700245c655a758f415f3c98bf6fbb4561b89a30bfb293c47a6285672
BLAKE2b-256 checksum
How to use checksums
d0eddef45e72055843786591e93c21c49f33d0a5f28a6fe48edc5ed4928f5146
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Release files / pomelo_pw-0.28.4-py3-none-any.whl

Download URL pomelo_pw-0.28.4-py3-none-any.whl
Size 66.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3fd364daaa30b9f23b5b9ab5c57e121af4aa9849cb558120c94412d2d628894e
BLAKE2b-256 checksum
How to use checksums
74a7197417bf94b019dca1d7459c8fffb139acadaf12213661810e04b7de1068
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Release history Release notifications | RSS feed

This release

0.28.4 This release

2 release files

0.19.0

2 release files

0.15.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page