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 Distribution

cdp_toolkit-1.1.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

Details for the file cdp_toolkit-1.1.0.tar.gz.

File metadata

  • Download URL: cdp_toolkit-1.1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for cdp_toolkit-1.1.0.tar.gz
Algorithm Hash digest
SHA256 fdb51fd2d4abdd448040bfc9cd12e1888fd090989dc0d06d2cf666e6e691b371
MD5 0f584b5f9b68bd94b7953cc7ecc29adb
BLAKE2b-256 9434bbff42050f4bbb4726f7ace15cbf891a67954c212228216f9ae03ce76eb7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cdp_toolkit-1.1.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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 37b4801481296aca0b1704e55e1773ad9855d436e499370d8efa37e8e9157551
MD5 f1be18ba4c31e188d20e413ce99eb0d3
BLAKE2b-256 c4876bf229f12a83a8c7a84dccf66984953cb803a79732442e782500cc810b72

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