Automated testing on websites with Turnstile

What is the name of the domain?

localhost

What is the issue you’re encountering

Turnstile doesn’t allow testing with Selenium as the captcha doesn’t pass

What steps have you taken to resolve the issue?

I’ve tried using testing keys that make captcha always pass (1x00000000000000000000AA for sitekey and 1x0000000000000000000000000000000AA for secret key).
But this approach is problematic as it makes captcha always pass on my staging server and I would like to keep it working as default captcha.
I was hoping that there is a way to use some token as dummy response token for backend that would allow selenium-based tests to pass? But I didn’t find anything in turnstile documentation.

Could you use cloudflared tunnel to pass through your local development/staging Website/Web application using custom sub-domain such as app.example.dev, therefore add Access policy and protect it with zero Trust so only you and your team can enter and use it? No need for Turnstile on localhost development as far as I’ve used.

Or, there is some specific reason you’d need and might want to test out Turnstile before going into production? :thinking:

You mean non-interactive for the end-user or?