AI agent instructions
AI agent instructions
solve_captchas=True).
Quick Start
Captcha solving is enabled by default. You can set it explicitly when creating a session:Supported CAPTCHA Types
Notte automatically detects and solves:- ✅ reCAPTCHA v2 - Checkbox and image challenges
- ✅ hCaptcha - Checkbox and image challenges
- ✅ Cloudflare Turnstile
- ✅ Press-and-hold challenges
- ✅ Text CAPTCHAs - Simple “read the characters and type them” challenges
How It Works
When captcha solving is enabled:- Detection - Notte monitors the page for captcha elements
- Solving - Captchas are solved automatically in the background
- Continuation - Your automation continues seamlessly
Captcha + Proxies
Residential proxies and CAPTCHA solving are both on by default. Use Proxies to choose a location or supply a custom proxy.Best Practices
1. Use Realistic Delays
Add human-like delays before and after captcha-protected actions:realistic_delays.py
2. Monitor for Failures
Check if captcha solving failed:monitor_failures.py
3. Use the Live Viewer for Debugging
Watch captcha solving in action:headless_debug.py
4. Combine with Stealth
Use stealth features for better success rates:Examples
reCAPTCHA
For reCAPTCHA challenges, use thecaptcha_solve action with captcha_type="recaptcha". This example comes from the reCAPTCHA template.
recaptcha_solve_action.py
Waiting for a solve in Python
The Python SDK polls one ongoing solve through short HTTP requests. Repeatedcaptcha_solve calls join that solve or return its completed result. Configure the
total wait separately from ordinary action timeouts:
Set captcha_timeout_seconds=180 when constructing NotteClient. Then use the captcha_solve action shown above; do not restart the session to wait for the same challenge.
The default CAPTCHA wait is three minutes. A terminal solver failure, page change,
or expired wait budget follows the usual raise_on_failure behavior. Polling does
not restart the solve or extend the session’s maximum lifetime.
When the site rejects the answer and shows the CAPTCHA again, the result has code="captcha_rejected" and session.execute() raises CaptchaRejectedError (from notte_sdk.errors in Python, notte-sdk in Node), a subclass of the error other CAPTCHA failures raise. Start a new session instead of retrying on the same page.
SDK actions blocked before execution wait for the CAPTCHA and then retry. If an
action already executed and triggered a CAPTCHA, the SDK waits without replaying
it. This coordination applies to Python SDK actions; direct Playwright/CDP calls
do not participate. It requires a backend version that supports CAPTCHA polling.
Text CAPTCHAs
Text CAPTCHAs are the old-school challenges that show distorted letters, numbers, or a short phrase and ask the user to type the answer into a field. For these challenges, usecaptcha_type="text". This example comes from the text CAPTCHA template.
text_captcha_solve_action.py
Limitations
What CAPTCHA Solving Can Do:
- ✅ Solve most reCAPTCHA v2 challenges
- ✅ Solve most hCaptcha challenges
- ✅ Solve Cloudflare Turnstile and press-and-hold challenges
- ✅ Solve simple text CAPTCHA challenges
- ✅ Work with residential proxies
- ✅ Work in remote browser sessions
What It Cannot Do:
- ❌ Solve 100% of captchas (some are unsolvable)
- ❌ Reliably solve heavily distorted or ambiguous text challenges
- ❌ Solve custom/proprietary captcha systems
- ❌ Bypass all bot detection (combine with stealth)
Common Issues
Issue: Captchas Not Being Solved
Possible causes:solve_captchaswas set toFalse- Captcha type not supported
- Site has additional bot detection
Issue: Timeout Waiting for Captcha
Increase session timeout for captcha-heavy workflows:timeout_handling.py
Testing CAPTCHA Solving
Use the live viewer to inspect a demo challenge and save a screenshot or recording of the result. The reCAPTCHA and text CAPTCHA examples above handle failure explicitly. Verify the challenge type on your target site rather than treating a demo success as a guarantee.Next Steps
Session Configuration
All session configuration options
Stealth Mode
Combine with anti-detection features
Proxies
Use proxies with captcha solving
Live View
Watch captcha solving in real-time