How to get around “Insecure download Blocked” in Selenium WebDriver
Chrome v122+ blocks downloads from insecure sites by default. How to get around that in your Selenium scripts
2 min readMar 30, 2024
This article is included in Web Test Automation with Selenium Case Studies series.
Recently, one of my Selenium WebDriver automated tests related file downloading failed. After inspecting, I found that Chrome blocked the downloading with the message Insecure download blocked
.
It might be due to a recent Chrome (v122) or its ChromeDriver update, as it was working before. The reason is that the site I’m downloading from (http://mail.server:1080) is not secure, i.e., it is not HTTPS.
This is MailCatcher, a fake SMTP server that assists in E2E testing.