All errors

selector_not_found

The requested selector was not found.

target selectorHTTP 400terminalnever billed

Common causes

  • · The element renders after the capture started.
  • · It lives inside a shadow root.
  • · The selector is wrong.

What to do

  • · Add `wait_for_selector` with the same selector.
  • · Set `include_shadow_dom=true` for shadow roots.
  • · Set `error_on_selector_not_found=false` to fall back to a viewport capture.

Response shape

HTTP 400
{
  "is_successful": false,
  "error_code": "selector_not_found",
  "error_message": "The requested selector was not found.",
  "documentation_url": "https://api.pagecapture.dev/docs/errors/selector_not_found",
  "request_id": "req_01..."
}