在Chrome更新到版本‘122.0.6261.70’之后,我无法使用Selify(Python)测试文件下载.
之前在Chrome上运行的"--Allow-Running-Insecure-Content"Arg做了一个小把戏.网上也有同样的建议.在一些网站上,建议增加一个参数:"--Disable-Web-Security".
但这两件事对我都没有什么影响(警告一直在出现).
有人知道121版和122版之间有什么变化吗?
我是不是遗漏了什么Arg或Pref?
参考的警告图像:
Driver creation (simplified):
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
options = Options()
for arg in ["--allow-running-insecure-content", "--disable-web-security"]:
options.add_argument(arg)
driver = webdriver.Chrome(options=options)