Skip to main content

Chrome DevTools Protocol automation toolkit

Project description

CDP Toolkit

Chrome DevTools Protocol automation without external dependencies

Features

  • CDPClient — HTTP endpoint for tab management (list, create, close, activate)
  • CDPMouseEvents — mouse click, release, move params
  • CDPInput — text injection, key events, React/Vue native setter JS
  • CDPNavigation — navigate, evaluate JS, screenshot params
  • Pure Python stdlib — no playwright, no selenium, no puppeteer

Quick Start

from cdp_client import CDPClient, CDPInput

client = CDPClient("127.0.0.1", 9222)
targets = client.list_targets()

React Form Fill

from cdp_client import CDPInput

js = CDPInput.native_setter_js("#email", "user@example.com")
# Send via CDP Runtime.evaluate

Tests

python -m pytest tests/ -v

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cdp_toolkit-1.0.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file cdp_toolkit-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: cdp_toolkit-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for cdp_toolkit-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ca26af8f26e18a5dd4c73fc150208af18c1530d04624d2530dfd7f8211625d59
MD5 1267c081a8f5399b288c793028b026ca
BLAKE2b-256 f41c4f6d0e806e9bc5cb627c1efbf4b33bfe2630392faada8840830d814b6564

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page