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.2

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.2
File Size Uploaded
pomelo_pw-0.28.2.tar.gz 44.9 kB Details

Built distribution (wheel)

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

Total release size: 111.4 kB

Release files / pomelo_pw-0.28.2.tar.gz

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

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

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

Release history Release notifications | RSS feed

This release

0.28.2 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