Skip to main content

Hello,

I am building a backend that deals with requests from the frontend containing a Recaptcha token.

I use the Python package google-cloud-recaptcha-enterprise to create the assessment and do the validation.

I would like to implement automated tests for this backend. I have a testing Recaptcha site key, but I don't know how to deal with the token.

Is there any way to have static test tokens that I could use in those automated tests?

Otherwise, I have seen this selenium option proposed in the snippets, I am not sure, I might also simply deactivate the token check for the automated tests.

Be the first to reply!

Reply