THE FORUM IS IN READ-ONLY MODE
How I solved Selenium and 2Captcha bypassing. And with multiple captchas.
AMCypher last edited by AMCypher
The @ruri topic is a little bit hard to some people..
I'll try my best to make a step-by-step on how I did bypass the captcha, by
- ... Parsing done by your script
By the very beggining, we must have the site key for the captcha. Mostly found in the own document.
Try to inspect element or show source code and find for "g-recaptcha-response"
In my case it was:
Because there was 2 captchas in same page.
<textarea id="g-recaptcha-response-3" name="g-recaptcha-response" class="g-recaptcha-response"
So, by continuing inspecioning and using charles to see more things.
I found the 'CallBack' function that rori comented about.
<div id="recap-login" class="recaptcha g-recaptcha -captcha " data-sitekey="<SITEKEY>" data-tabindex="4" data-callback="callbackCaptchaLogin" data-badge="inline" data-size="invisible">
in this case, my callback function is callbackCaptchaLogin();
So the final solution after solving the captcha was:
Pay attetion to g-recaptcha-response-3
document.getElementById('g-recaptcha-response-3').innerHTML = '<SOLUTION>'; callbackCaptchaLogin();
Then do your thing
Hope it helped.
Moved to Selenium Guides, thank you for writing the guide!