我正在尝试使用NuGet在我的项目上设置 Selenium WebDriver 2.5.1 。
我尝试在 Visual Studio 中通过Tools -> Manage NuGet Packages...安装,但出现错误。
我尝试在 NuGet 控制台中调用命令,如上面的链接所示:
Install-Package Selenium.WebDriver
我得到同样的错误,即:
Attempting to resolve dependency 'Newtonsoft.Json (≥ 4.0.2)'.
Install-Package : Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
At line:1 char:16
+ Install-Package <<<< Selenium.WebDriver
+ CategoryInfo : NotSpecified: (:) [Install-Package], IOException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
是 Selenium NuGet 包本身的错误吗?有谁知道如何克服这个问题(当然除了不安装 NuGet 包并恢复为手动设置)?
谢谢。