【发布时间】:2020-11-12 22:20:50
【问题描述】:
我在尝试使用 Selenium Web 驱动程序启动 IE 时遇到错误。
所有区域的启用保护模式必须设置为相同的值(启用或禁用)。 (NoSuchDriver)。
我知道一种解决方法是解决实际问题,但我更关心的是让我的代码能够解决该问题。
我在 C# 中看到过这个修复,但我不知道如何在 VBA 中使用它。任何指针? --> https://stackoverflow.com/a/13384197/5079799
var options = new InternetExplorerOptions;
options.IntroduceInstabilityByIgnoringProtectedModeSettings = true;
var driver = new InternetEplorerDriver(options);
【问题讨论】:
标签: vba selenium selenium-webdriver internet-explorer