|
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. |
Answered by
mdmintz
Jun 18, 2024
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 |
2 replies
Answer selected by
mdmintz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

SeleniumBase uses part of https://stackoverflow.com/a/78065424/7058266 for this:
(
--disable-features=InsecureDownloadWarningsis 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