NEWStandard createTask and in.php APIs. Change the address and you are connected.View API docs
GATESOLVER

Glossary

Chrome DevTools Protocol: the wire behind browser automation

The Chrome DevTools Protocol, CDP for short, is a JSON message protocol that lets an outside program inspect, debug and control a Chromium based browser.

How it works

Start Chrome with a remote debugging port and it opens a WebSocket endpoint. A client connects and sends JSON commands, each with an id, a method and parameters; the browser answers with a result and also pushes events (a request was sent, a console message appeared). The DevTools panel you open with F12 uses this same protocol, which is where the name comes from.

{"id": 7, "method": "Page.navigate",
 "params": {"url": "https://example.com/"}}

{"id": 7, "result": {"frameId": "A1B2...", "loaderId": "C3D4..."}}

Domains

Commands are grouped into domains. A few you meet often:

  • Page: navigation, screenshots, lifecycle events.
  • Runtime: evaluating JavaScript and receiving console output.
  • Network: request and response events, cookies, header overrides.
  • Fetch: intercepting and modifying requests in flight.
  • Emulation: device metrics, timezone, geolocation, user agent.
  • Input: synthetic mouse and keyboard events.

Who uses it

Puppeteer is a thin, friendly layer over CDP. Playwright uses CDP for Chromium and its own protocols for Firefox and WebKit. Selenium 4 exposes CDP commands for Chromium browsers alongside WebDriver. Performance tools, Lighthouse and many debugging extensions also speak it. The newer WebDriver BiDi standard aims to provide similar two way control across all browsers, and libraries are gradually adopting it.

Detection side effects

Using CDP is not invisible to the page. Some side effects that detection scripts have looked for:

  • Enabling the Runtime domain changes how certain objects are serialized when logged to the console, which a page can observe with a crafted getter.
  • Scripts injected by the automation layer can leave extra globals, unusual stack traces or isolated worlds.
  • Input events dispatched through the protocol can differ in timing and properties from hardware input.
  • Emulation overrides may produce inconsistent values, for example a mobile user agent with a desktop screen.

Exact techniques change as browsers and detectors update each other, so treat any list like this as an example to check against current behavior. The general point holds: automation over CDP tends to leave fingerprints, which is part of why automated sessions meet more challenges (see headless browser detection and browser fingerprinting).

Working with challenges anyway

Hiding every trace is a moving target. For lawful automation, a steadier approach is to accept that a challenge may appear and handle it as a step. Token widgets are solved outside the browser and injected; a Turnstile token typically takes under 3 seconds. You can even use CDP itself to set the result, for example the Network domain to add a clearance cookie returned by a challenge task before navigating, which works as long as the browser uses the same proxy and user agent the task used.

Using CDP directly

Most people never need raw CDP, but it is handy for features a library does not wrap yet. Puppeteer exposes page.createCDPSession() and Playwright offers newCDPSession for Chromium, so you can send any command while keeping the library for everything else.

Common questions

What transport does CDP use?

A WebSocket connection to the browser debugging port, carrying JSON commands, results and events.

Does Playwright use CDP?

For Chromium it does. For Firefox and WebKit it uses its own protocols patched into those browsers.

Can a web page detect CDP automation?

It can notice some side effects, such as changed serialization behavior or synthetic input, though techniques change over time.

What is WebDriver BiDi?

A newer W3C standard for two way browser automation across browsers, covering much of what CDP offers for Chrome.

Can I send raw CDP commands from Puppeteer?

Yes. Open a CDP session from a page and send any protocol method directly.

Keep reading