Selenium reCAPTCHA Automation Problem Solved

The selenium reCaptcha automation problem has been solved! Hi all, in this tutorial I will explain a way to solve ReCaptcha by using Selenium.’s API used for solving Google’s Invisible Recaptcha and Recaptcha v2 with Java Selenium Chrome Browser Test Automation.

  • Solve image challenges.
  • Retry for image challenges.
  • Click I am no robot checkbox.
  • Response to invisible captcha forms.

Google has a demo website that includes a dummy form. This example has been tested on this demo website. URL without query string will show I am not a robot. You should add “?invisible=true” at the end of the following URL. When invisible=true there will be an extra request to for resolution of the invisible captcha. This repository is compatible with all Google Recaptcha types.

Prerequisites for starting Selenium reCaptcha Automation?

  • Account with a minimum of 3$ balance for 1000 Recaptcha. (Starting from 0.5 USD for 1000 solved CAPTCHAs by data entry workers)
  • Development needs Java JDK v1.8.0, Maven, IntelliJ (preferable IDE)

You should also:

  • Change configuration and site settings from “src\test\resources\” file.
  • Use Sandbox mode (for developers) for image selection challenges.
  • Use proxy settings for test automation running (not required, but recommended).

Why do we need API services?

Because you can not fight with Google. You need to analyze and decide to answer like a human. If you have software that has artificial intelligence and learns continuously everything changes. All of these solutions are of course paid. solves different types of captchas:

Normal Captcha, Text Captcha, ReCaptcha V2, ReCaptcha V3, GeeTest, ReCaptcha V2 (old method), Solving ClickCaptcha, RotateCaptcha, FunCaptcha, FunCaptcha Token Method, KeyCaptcha, hCaptcha

To start using service:

Service provides an API that allows you to solve different types of captchas.

  • Register
  • Implement API.
  • Send to your CAPTCHAs.
  • Get your answer/directions as text.

Other popular alternatives


How to configure?

Chrome Browser Driver

  • You have to download the correct driver for your operating system. There are 3 versions of the driver:
  • You have to download the correct version of the driver for your Chrome Browser. Just check your browser version before downloading the file to this location “src\test\resources\drivers“. After that, you should fix the filename and extension on this file “src\test\java\base\DriverBase

System.setProperty("", "src/test/resources/drivers/chromedriver.exe"); file

  • Required fields: apiKey,googleKey,pageUrl.
  • apikey is YOUR API KEY FROM ->dashboard->Account Settings -> Copy API Key
  • googleKey is you should get it from target website(it will change for each application, you don’t have to change it for this dummy project. But you should find it from the website code. More information:
  • pageUrl is the website that has ReCaptcha on this test page. You should solve the invisible captcha on this demo just change the query string which is at the and of the pageUrl invisible=false -> invisible=true
  • Optional fields: proxyIp, proxyPort, proxyUser, proxyPw


Image Challenge Locally Stored Images

You should find the Recaptcha’s iframe elements screenshots in this folder. This code is always taking screenshots and overwriting the existing 2 files automatically. “src\test\resources\screenshots

  • imageFile.gif: That’s the 3×3 or 4×4 image challenge box.
  • imageInstructions.gif: That’s the instructions for workers. Example: “Select all images with crosswalks”.

selenium reCAPTCHA problem

How to run?

That’s a JUnit-java-maven-selenium Webdriver project. The Default Test folder is “src\test\java\tests\” just right-click on IntelliJ’s project explorer window or run it from the command line with the maven command.

I cannot guarantee that it will always work. However, I developed necessary implementations for possible scenarios. Response times from should take between 30-90 seconds depending on your settings at

What is the motivation behind this project?

If it is possible to do this just showing it to the community to raise awareness.

What they can do? They can automate many processes that require reCaptcha solving such as bulk ticket purchases, a limited number of product purchases, creating accounts automatically, testing login pages that need reCaptcha, etc.

GitHub Link


Ozgur Kaya

2 thoughts on “Selenium reCAPTCHA Automation Problem Solved”

  1. This phrase made me laugh: “All of these solutions are of course paid”. My company didn’t want to pay for automation tools… So instead, they spent $4M paying all of us to build out not just the automation, but the tools to run it. We built awesome tools with Selenium… Supported all the desktop browsers, storyboarding, automatic synchronization… And even a form of self healing. They wound up paying either way.


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.