This forum is in read-only mode. The new forum is live at and registrations are open!

How I solved Selenium and 2Captcha bypassing. And with multiple captchas.

  • 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

    • Solving
    • Parsing
    • JavaScript execution code
    • ... 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"
    2captchas in samePage.jpg
    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>';

    Then do your thing 🙂
    Hope it helped.
    Thanks 🙂

  • Admin

    Moved to Selenium Guides, thank you for writing the guide!

Log in to reply