0
我正在嘗試使用NuGet在我的項目上安裝Selenium WebDriver 2.5.1。嘗試使用NuGet安裝Selenium.WebDriver時出錯
我試着通過安裝工具 - >管理NuGet軟件包...在Visual Studio中出現錯誤。
我試圖調用的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軟件包並恢復爲手動設置)?
謝謝。
感謝您的回答;我沒有任何互聯網問題 - 這個問題只出現在這個軟件包中,並且一再出現。我可以手動設置Selenium,但正如我所說的,我正在尋找一個NuGet整體解決方案。 –
有趣。我可以安裝Selenium 2.5.1而沒有任何問題。你有沒有嘗試將軟件包下載到本地系統並從那裏安裝? –
我手動安裝,沒有NuGet。 NuGet仍然失敗... –