IE驱动程序的命令行服务器已停止工作

时间:2016-02-01 09:05:33

标签: c# selenium selenium-webdriver

当我尝试运行最新的IEDriver 2.50.1,等待几秒钟后,我遇到了这个问题。

在命令行中,它说:只允许本地连接。也许这就是问题所在,我该如何改变呢?

我试图找到解决这个问题的方法,但没什么好说的。

我的驱动程序初始化:

InternetExplorerDriverService driverService = InternetExplorerDriverService.CreateDefaultService();
//driverService.HideCommandPromptWindow = true;
driverService.LibraryExtractionPath = Environment.CurrentDirectory;

InternetExplorerOptions options = new InternetExplorerOptions();
options.EnableNativeEvents = true;
options.IgnoreZoomLevel = true;
options.IntroduceInstabilityByIgnoringProtectedModeSettings = true;

driver = new InternetExplorerDriver(driverService, options, TimeSpan.FromSeconds(60));

例外:

  

发送HTTP请求时抛出了一个带有null响应的异常   URL http://localhost:61152/session的远程WebDriver服务器。   异常的状态是ReceiveFailure,消息是:   基础连接已关闭:发生意外错误   收到。

错误图片:

Application crushes image

它能是什么?感谢。

0 个答案:

没有答案