solveImageCaptcha
Solves an image captcha using caller-provided selectors. Unlike solve, which auto-detects known captcha types, this mutation works on any site by accepting custom captchaSelector and inputSelector arguments. It detects the captcha image, solves it, and fills the result into the specified input field.
Usage Example:
mutation SolveImageCaptcha {
goto(url: "https://example.com") {
status
}
solveImageCaptcha(
captchaSelector: "img.captcha-image"
inputSelector: "input#captcha-input"
timeout: 60000
) {
found
solved
time
token
}
}
Field Definition:
solveImageCaptcha(
captchaSelector: String!
inputSelector: String!
timeout: Float
): CaptchaResponse
Arguments
solveImageCaptcha.captchaSelector ● String! non-null scalar
The CSS selector for the captcha image element on the page
solveImageCaptcha.inputSelector ● String! non-null scalar
The CSS selector for the input field where the solved captcha value should be filled
solveImageCaptcha.timeout ● Float scalar
A time, in milliseconds, to wait for the captcha to appear and be solved. Default timeout is 30 seconds, or 30000.
Type
CaptchaResponse object
Response returned after a captcha has been solved