> ## Documentation Index
> Fetch the complete documentation index at: https://docs.surfsky.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Click CAPTCHA

> Click a known verification control using a CSS selector or viewport coordinates.

The `click` solver clicks a target you provide. It does not identify images, answer questions, or automatically detect the correct control.

<span id="overview" />

<span id="prerequisites" />

<span id="quick-start" />

## Before you start

Enable `anti_captcha.enabled` and create a page-level `cdp` session using the [CAPTCHA setup](/captcha-solving#connect-and-solve). Navigate to your page and locate the verification control.

## Manual solving

Use a selector from your page:

<CodeGroup>
  ```python Python (async) theme={null}
  result = await cdp.send("Captcha.solve", {
      "type": "click",
      "timeout": 30000,
      "options": {"selector": "#verify-button"},
  })
  ```

  ```javascript JavaScript theme={null}
  const result = await cdp.send("Captcha.solve", {
    type: "click",
    timeout: 30000,
    options: { selector: "#verify-button" },
  });
  ```
</CodeGroup>

Or pass `[x, y]` coordinates in viewport CSS pixels:

```javascript theme={null}
const result = await cdp.send("Captcha.solve", {
  type: "click",
  options: { selector: [320, 240] },
});
```

`selector` is required. Automatic mode is not supported for `click`.

<span id="best-practices" />

<span id="how-it-works" />

<span id="need-help" />

<span id="related" />

## Check the result

A `success` result means the click action completed. Wait for the expected page state to confirm verification. Recalculate coordinates after scrolling or a layout change; a completed click can still hit the wrong control.

If the element is inside an iframe, a main-document selector may not find it. Inspect it with your framework's frame support and use an appropriate target. For ordinary UI interaction without CAPTCHA configuration, use [Human.click](/human_emulation#click-and-move).
