-
Hi, I got this warning from my browser when trying to download a file in Chrome. I use sb.click to click and download the file. How do I bypass this? Can please help with this? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
SeleniumBase uses part of https://stackoverflow.com/a/78065424/7058266 for this: You could also try adding: However, there might be a bug in recent Chromium versions: https://bugs.chromium.org/p/chromedriver/issues/detail?id=4730 |
Beta Was this translation helpful? Give feedback.
SeleniumBase uses part of https://stackoverflow.com/a/78065424/7058266 for this:
(
--disable-features=InsecureDownloadWarnings
is already included with SeleniumBase)You could also try adding:
chromium_arg="--unsafely-treat-insecure-origin-as-secure=*"
, where*
is your domain.However, there might be a bug in recent Chromium versions: https://bugs.chromium.org/p/chromedriver/issues/detail?id=4730