Watch
1
0
Fork
You've already forked golang-github-chromedp-cdproto
0
No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Daniel Baumann fd2550b491
Releasing fastforward version 0.157.9-0.1~ffwd13+u1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2026-10-06 10:32:12 +02:00
.github/workflows Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
accessibility Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
ads Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
animation Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
audits Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
autofill Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
backgroundservice Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
bluetoothemulation Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
browser Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
cachestorage Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
cast Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
cdp Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
crashreportcontext Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
css Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
debian Releasing fastforward version 0.157.9-0.1~ffwd13+u1. 2026-10-06 10:32:12 +02:00
debugger Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
deviceaccess Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
deviceorientation Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
digitalcredentials Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
dom Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
domdebugger Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
domsnapshot Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
domstorage Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
emulation Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
eventbreakpoints Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
extensions Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
fedcm Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
fetch Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
filesystem Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
findinpage Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
har Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
headlessexperimental Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
heapprofiler Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
indexeddb Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
input Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
inspector Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
io Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
layertree Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
log Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
media Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
memory Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
network Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
overlay Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
page Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
performance Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
performancetimeline Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
preload Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
profiler Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
pwa Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
runtime Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
security Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
serviceworker Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
smartcardemulation Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
storage Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
systeminfo Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
target Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
tethering Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
tracing Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
webaudio Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
webauthn Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
webmcp Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
.gitignore Adding upstream version 0.0~git20250803.d308e07. 2026-03-09 13:35:15 +01:00
cdproto.go Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
CHANGELOG.md Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
go.mod Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
go.sum Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
LICENSE Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
README.md Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00
version.go Merging upstream version 0.157.9. 2026-10-06 10:31:56 +02:00

About cdproto

chromedp logo

Package cdproto contains the generated commands, types, and events for the Chrome DevTools Protocol domains.

Unit Tests Go Reference Releases Discord Discussion

This package is generated by the pdlgen command. Please refer to that project and to the main chromedp project for information on using the commands, types, and events available here.

Install

go get github.com/chromedp/cdproto@latest

The package needs Go 1.25 or later. Go 1.27 has encoding/json/v2 in the standard library, but Go 1.25 and Go 1.26 have it only with GOEXPERIMENT=jsonv2. To work without that setting, the package cdp/jsonv2 is the only package that imports a JSON package. It has the names of the standard library, such as jsonv2.Value, jsonv2.Options, jsonv2.Marshal and jsonv2.Unmarshal. With Go 1.27, or with GOEXPERIMENT=jsonv2, they are aliases of the standard types. In all other cases they come from the module github.com/go-json-experiment/json. The build tag cdproto_jsoncompat selects the module on every version of Go. With Go 1.27, set GOEXPERIMENT=nojsonv2 as well, because the pinned version of the module does not build with the standard package of Go 1.27.

Using the API

Each protocol command is a value with a parameter type and a result type. The function cdp.Call runs it on a session. Each protocol event is a value too. The function cdp.Events returns an iterator for it.

res, err := cdp.Call(ctx, session, page.Navigate, page.NavigateParams{URL: "https://example.com"})

See the Go Reference for the API, and docs/API.md in the pdlgen project for the rules that the generator follows.

Versions

A tag has the form v0.<major>.<patch>, where the minor version is the Chromium major version of the protocol. Any release can contain incompatible changes, because the protocol removes and renames things. CHANGELOG.md and the annotation of each tag list the changes. The releases up to v0.157.2 have the old API, which had a Do method on each command. The release v0.157.3 is the first one with the typed API.

A new Chromium or V8 version alone makes no release. If the generated API is the same, the workflow makes no commit and no tag. For this reason, cdproto.ChromiumVersion() can name an older Chromium build than the newest one.

Contributing

If you would like to submit a change to the code in this package, please submit your Pull Request to the pdlgen project. Any Issues and Pull Requests submitted to this project will be closed without being reviewed.