Captcha Solver

When navigating a page with Browser API, our integrated CAPTCHA solver automatically solves all CAPTCHAs by default. You can monitor this auto-solving process in your code with the following custom CDP functions.
If you would like to disable CAPTCHA solver entirely through the Control Panel see our feature for Disable Captcha Solver
Once a CAPTCHA is solved, if there is a form to submit, it will be submitted by default.

CAPTCHA Solver - Automatic Solve

CAPTCHA Solver - Manual Control

If you would like to either manually configure or fully disable our default CAPTCHA solver and instead call the solver manually or solve on your own, see the following CDP commands and functionality.

Emulation Functions

Ad Blocker

Enabling our AdBlock feature can help reduce bandwidth usage and improve performance on ad-heavy websites.

CDP Commands

  • Unblocker.enableAdBlock – Enables ad blocker (default: off)
  • Unblocker.disableAdBlock – Disables ad blocker
We recommend enabling ad blocking before navigating to the target page.
Example
// Enable ad blocking before navigating
const client = await page.createCDPSession();

try {
    await client.send('Unblocker.enableAdBlock', {
        list: [null],
    });
} catch (e) {
    console.error(e.stack || e);
}

await page.goto('https://www.w3schools.com/html/html_forms.asp');
See the full ad blocker example script.

Session Persistence

Use this command to reuse the same proxy peer across multiple browsing sessions. This is useful for scenarios where maintaining a consistent session is required, such as preserving browser states or IP-based continuity.

CDP Commands

  • Proxy.useSession – Associates a session with a specific session ID.
  • sessionId – A unique string that identifies your session.
Use the CDP command before navigation to the target page.
Example
const client = await page.createCDPSession();
await client.send('Proxy.useSession', { sessionId });
await page.goto('https://geo.brdtest.com/mygeo.json');

File Download

You can automate file downloads in your Browser API flows using the custom Download CDP domain. This is useful for workflows that require downloading files (e.g., CSV, PDF) directly during browser automation.

CDP Commands

  • Download.enable – Enables file downloads for specified content types.
  • Download.downloadRequest – Fires when request results in download.
  • Download.getLastCompleted – Retrieves information about the last completed download.
  • Download.getDownloadedBody – Gets the actual downloaded file content.
Example
const client = await page.createCDPSession();

// Enable downloads for binary files like CSV
await client.send('Download.enable', { allowedContentTypes: ['application/octet-stream'] });

// initiate download file
await Promise.all([
  new Promise(resolve => client.once('Download.downloadRequest', resolve)),
  page.click(selector),
]);

// After download completes:
const { id } = await client.send('Download.getLastCompleted');
const { body, base64Encoded } = await client.send('Download.getDownloadedBody', { id });
const fs = require('fs');
fs.writeFileSync('./downloaded_file.csv', base64Encoded ? Buffer.from(body, 'base64') : body);

Faster Text Input

For scenarios that need rapid or bulk text input, use the custom Input.type CDP command. This approach is much faster than standard CDP text input methods, making it well suited for automation tasks requiring high-speed typing or handling large volumes of text.

CDP Commands

  • Input.type - Sends keystrokes or simulates typing the specified text into the currently focused element.
Example
const client = await page.createCDPSession();

// Focus the input element
await page.focus('input');

// Type a message
await client.send('Input.type', {
  text: 'what is the best place to try pizza and pasta?'
});

Custom Client SSL/TLS Certificates

Use this command to install custom client SSL/TLS certificates where required for specific domain authentication. These certificates are applied for the duration of a single Browser API session and are automatically removed once the session ends.