solveImageCaptcha
Solves an image captcha by accepting custom captchaSelector and inputSelector arguments. This mutation detects the captcha image using the provided selector, solves it, and automatically fills the input field without needing hardcoded selectors per site.
Usage Example:
mutation SolveImageCaptcha {
goto(url: "https://captcha.com/demos/features/captcha-demo.aspx") {
status
}
solveImageCaptcha(
captchaSelector: "#demoCaptcha_CaptchaImage"
inputSelector: "#captchaCode"
timeout: 30000
) {
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