Bypass Google CAPTCHA during Automated Testing

We have integrated Auth0 with our Google OAuth client. When our testing team runs automated end-to-end tests with Nightwatch, the tests are randomly blocked by Google’s automatic CAPTCHA detection.

This is the general flow of events:

Application bot attempts login → Auth0 forwards the login to Google (with our Google OAuth client credential parameters) → Google prompts for login → Bot enters email → Login is randomly blocked by CAPTCHA puzzle

Is anyone aware of a way to “coerce” Google to not prompt for CAPTCHA during automated testing? We have control over Auth0 and our Google Client credentials, but not the client hosting the Google login.

We have the same issue, any idea to resolve this?

@Derek.Wong No, we weren’t able to solve it. We worked around it by creating Auth0 Username-Password-Authentication accounts just for the testing team. Now the automated tests log in directly with Auth0 credentials instead of going through Google. The downside is it doesn’t truly test the end-user experience.