How to avoid hCaptcha with Selenium WebDriver?
Prevent selenium driven automation from being detected
This is an article in the “How to in Selenium WebDriver?” series.
First of all, Captcha if was put there on purpose, automation scripts cannot go past it, as that’s what Captcha is designed for. In software testing, a typical approach to Captcha in test automation is to disable Captcha in the test server environment(s). This makes sense, it is internal testing. Do people install locks on every door inside their house?
However, when working with external websites, some activates hCaptcha (or reCaptcha) when accessed via automation scripts.
With message like below:
“One more step
Please complete the security check to access www.mysite.com.Completing the CAPTCHA proves you are a human and gives you temporary access to the web property.
What can I do to prevent this in the future?
Another way to prevent getting this page in the future is to use Privacy Pass”
This sucks for automation. How to avoid it?