&引用;失败-下载错误“;同时使用Selenium Python下载一个文件

&引用;失败-下载错误“;同时使用Selenium Python下载一个文件,python,selenium,selenium-webdriver,selenium-chromedriver,Python,Selenium,Selenium Webdriver,Selenium Chromedriver,我试图使用selenium下载一个文件,但得到“失败-下载错误” 我试图禁用安全浏览功能,但无效 我已经附上了截图和代码以及 日志: 开发工具在ws://127.0.0.1:53738/DevTools/browser/d75dfd5b-1e3e-45c5-8edd-adf77dd9adb1上侦听 [2572:2724:0717/104626.877:错误:设备\u事件\u日志\u impl.cc(208)][10:46:26.877]蓝牙:蓝牙适配器\u winrt.cc:1074获取默认适配

我试图使用selenium下载一个文件,但得到“失败-下载错误”

我试图禁用安全浏览功能,但无效

我已经附上了截图和代码以及

日志:

开发工具在ws://127.0.0.1:53738/DevTools/browser/d75dfd5b-1e3e-45c5-8edd-adf77dd9adb1上侦听 [2572:2724:0717/104626.877:错误:设备\u事件\u日志\u impl.cc(208)][10:46:26.877]蓝牙:蓝牙适配器\u winrt.cc:1074获取默认适配器失败


当我从路径中删除“r”时,它起作用了

"download.default_directory": r"C:\\Users\\Awais\\projects\\selenium\\web_email_extractor\\csv",
致:


在Windows上,应该可以通过以下方式抑制此消息:

options = webdriver.ChromeOptions()

options.add_experimental_option('excludeSwitches', ['enable-logging'])

我刚刚找到了这个问题的解决方案,请再次检查!
"download.default_directory": "C:\\Users\\Awais\\projects\\selenium\\web_email_extractor\\csv",
options = webdriver.ChromeOptions()

options.add_experimental_option('excludeSwitches', ['enable-logging'])