Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to force fail a recaptcha v2 for testing purposes? (I.e. pretend to be a robot)

Tags:

recaptcha

I'm implementing an invisible reCAPTCHA as per the instructions in the documentation: reCAPTCHA V2 documentation

I've managed to implement it without any problems. But, what I'd like to know is whether I can simulate being a robot for testing purposes?

Is there a way to force the reCAPTCHA to respond as if it thought I was a robot?

Thanks in advance for any assistance.

like image 991
strttn Avatar asked Apr 13 '17 16:04

strttn


People also ask

Can reCAPTCHA be fooled?

Computer scientists have found a way around Google's reCAPTCHA tests, tricking the system into thinking an artificial intelligence program is human. But there's a catch, although the AI system can fool the bot test it doesn't live-up to the promise its creators give it.

How do I trigger invisible reCAPTCHA V2?

You can test invisible recaptcha by using Chrome emulator. You will need to add a new custom device (BOT) in developer tools, and set User Agent String to Googlebot/2.1 on Desktop . Then use the new BOT device when testing on your site to trigger the recaptcha authentication.


1 Answers

In the Dev Tools, open Settings, then Devices, add a custom device with any name and user agent equal to Googlebot/2.1.

Finally, in Device Mode, at the left of the top bar, choose the device (the default is Responsive).

You can test the captcha in https://www.google.com/recaptcha/api2/demo?invisible=true

(This is a demo of the Invisible Recaptcha. You can remove the url invisible parameter to test with the captcha button)

like image 110
Lucas Basquerotto Avatar answered Sep 28 '22 00:09

Lucas Basquerotto