Click CAPTCHA Solving
Overview
Click CAPTCHAs require users to click on specific objects in images (like "click all traffic lights" or "select all bicycles"). Surfsky handles these image selection challenges through our manual solving system.
Quick Start
For most use cases, our simplified CAPTCHA solving approach handles Click CAPTCHAs. See our comprehensive CAPTCHA Solving Guide for full details.
Prerequisites
- Enable
anti_captcha
in your browser profile settings - Use quality proxies to minimize CAPTCHA challenges
Manual Solving
Click CAPTCHA requires specifying the target to click - either a CSS selector or coordinates:
- Python
- JavaScript
import asyncio
from playwright.async_api import async_playwright
async def solve_click():
async with async_playwright() as p:
# Connect to your Surfsky browser
browser = await p.chromium.connect_over_cdp("ws://your-browser-url")
page = await browser.new_page()
# Create CDP session
client = await page.context.new_cdp_session(page)
# Navigate to page with Click CAPTCHA
await page.goto("https://example.com/protected")
# Option 1: Click using CSS selector
response = await client.send("Captcha.solve", {
"type": "click",
"click_target": "#captcha-button" # CSS selector
})
# Option 2: Click using coordinates
# response = await client.send("Captcha.solve", {
# "type": "click",
# "click_target": [350, 200] # [x, y] coordinates
# })
if response.get("status") == "success":
print("✓ Click CAPTCHA solved!")
# Continue with your automation
await page.wait_for_load_state("networkidle")
else:
print("✗ Failed to solve Click CAPTCHA")
await browser.close()
asyncio.run(solve_click())
const { chromium } = require('playwright');
async function solveClick() {
// Connect to your Surfsky browser
const browser = await chromium.connectOverCDP('ws://your-browser-url');
const page = await browser.newPage();
// Create CDP session
const client = await page.context().newCDPSession(page);
// Navigate to page with Click CAPTCHA
await page.goto('https://example.com/protected');
// Option 1: Click using CSS selector
const response = await client.send('Captcha.solve', {
type: 'click',
click_target: '#captcha-button' // CSS selector
});
// Option 2: Click using coordinates
// const response = await client.send('Captcha.solve', {
// type: 'click',
// click_target: [350, 200] // [x, y] coordinates
// });
if (response.status === 'success') {
console.log('✓ Click CAPTCHA solved!');
// Continue with your automation
await page.waitForLoadState('networkidle');
} else {
console.log('✗ Failed to solve Click CAPTCHA');
}
await browser.close();
}
solveClick().catch(console.error);
How It Works
Click CAPTCHA solver allows you to:
- Click on specific elements using CSS selectors
- Click on exact coordinates [x, y]
- Automate clicking actions for CAPTCHA challenges
Best Practices
- Precise Targeting - Use specific CSS selectors or exact coordinates
- Natural Clicking - Our solver mimics human click patterns
- Quality Proxies reduce CAPTCHA frequency
- Human Emulation helps avoid triggering challenges
Need Help?
For more details on CAPTCHA solving, see our comprehensive CAPTCHA Solving Guide.
Questions? Contact us at [email protected].