Skip to main content
Browserbase enables CAPTCHA solving by default for all sessions. How it works
  • Expect CAPTCHA solving to take up to 30 seconds, depending on the challenge type.
  • Pairing with proxies improves success rates.
  • For non-standard CAPTCHAs, you can provide custom selectors to guide the process.
Use CAPTCHA solving only for workflows that users and website owners authorize. Follow the site’s terms, respect access controls, and use supported integrations when available. To disable CAPTCHA solving, set solveCaptchas to false in browserSettings when creating a session.

CAPTCHA solving events

Browserbase emits a console log when it detects a CAPTCHA and begins solving. Listen to these events before your agent continues.

Custom CAPTCHA solving

If you encounter a non-standard, or custom CAPTCHA provider, you need to specify the explicit selector for the CAPTCHA image and button itself. For this custom CAPTCHA provider, you’ll need to specify two CSS selectors:
1

The selector for the CAPTCHA image element

2

Right-click on the CAPTCHA image and select 'Inspect' then pull the 'id' from the HTML source code of the image

The id in this example is c_turingtestpage_ctl00_maincontent_captcha1_CaptchaImage
3

The selector for the input field where the solution should be entered

4

Right-click on the input field and select 'Inspect' then pull the 'id' from the HTML source code of the input field

The id in this example is ctl00_MainContent_txtTuringText
5

Configure your browser settings with these selectors

Disabling CAPTCHA solving

CAPTCHA solving typically takes between 5 and 30 seconds. If you’d like to disable captcha solving, you can set solveCaptchas to false in the browserSettings when creating a session.
SDK