我尝试在提升模式下打开 Ms Edge,但无法执行此操作。(Windows 11)
我也尝试过手动打开它,但“提升”选项始终设置为“否”
我尝试通过 selenium 使用以下选项
admin_edge_options = webdriver.IeOptions()
admin_edge_options.use_chromium = True
admin_edge_options.add_argument('--ie-mode-test')
admin_edge_options.add_argument('--no-sandbox')
admin_edge_options.add_argument('--disable-gpu')
admin_edge_options.add_argument('--disable-software-rasterizer')
admin_edge_options.add_argument('--disable-dev-shm-usage')
admin_edge_options.add_argument('--disable-extensions')
driver = webdriver.Ie(options=admin_edge_options)
我已经尝试过手动
- 以管理员身份运行:
- 右键单击 Microsoft Edge 快捷方式或可执行文件。
- 选择“以管理员身份运行”以使用提升的权限启动 Edge。
- 暂时禁用 Windows Defender 后运行
我尝试在另一台机器(Windows 10)上执行相同的操作,面临同样的问题。