joelgriffith / navalia

A bullet-proof, fast, and reliable headless browser API
https://joelgriffith.github.io/navalia/
GNU General Public License v3.0
957 stars 33 forks source link

Browser doesn't support reCaptcha #51

Open sabrehagen opened 7 years ago

sabrehagen commented 7 years ago

Hi,

Thanks for a great tool. Is it possible for Navalia (or chromeless) to support reCaptchas? This is a screenshot of a search engine using navalia: screenshot

lcofre commented 7 years ago

I think reCaptchas will never allow your automated tests to run. That's the purpose of a reCaptcha, right? :) But if you have control over the site you are testing, you can "disable" it: https://developers.google.com/recaptcha/docs/faq#id-like-to-run-automated-tests-with-recaptcha-v2-what-should-i-do

sabrehagen commented 7 years ago

Can we address the issue of why recaptcha is not supported in Natalia, not recaptcha's purpose?

joelgriffith commented 7 years ago

I'm not an expert, but if I had to guess it's likely due to the fact that recaptcha is doing more complex things like mouse tracking and interaction timing. IIRC chrome also attaches a headless string to it's user-agent, so that might play into this as well.

Unfortunately trying to reverse engineer recaptcha is a pretty tall order. Some of the best minds at Google have thought about it, and I doubt that their methods of detection are easily thwarted