我正在尝试使用Xamarin Studio在MAC中使用Visual Studio 2010
在Selenium WebDriver
上运行我创建的测试。我有chromedriver.exe
作为EmbeddedResource,所以我删除并添加了一个用于mac(chromedriver)。
一切看起来都不错,但不允许我运行它们,因为我看到了这个错误:
OpenQA.Selenium.WebDriverException : Unexpected error. System.Net.WebException: Error: ConnectFailure (Connection refused) ---> System.Net.Sockets.SocketException: Connection refused
at System.Net.Sockets.Socket.Connect (System.Net.EndPoint remoteEP) [0x000f1] in /private/tmp/source-mono-mac-3.12.0-branch-32/bockbuild-mono-3.12.0-branch/profiles/mono-mac-xamarin/build-root/mono-3.12.0/mcs/class/System/System.Net.Sockets/Socket_2_1.cs:1257
at System.Net.WebConnection.Connect (System.Net.HttpWebRequest request) [0x0019b] in /private/tmp/source-mono-mac-3.12.0-branch-32/bockbuild-mono-3.12.0-branch/profiles/mono-mac-xamarin/build-root/mono-3.12.0/mcs/class/System/System.Net/WebConnection.cs:213
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.EndGetRequestStream (IAsyncResult asyncResult) [0x00045] in /private/tmp/source-mono-mac-3.12.0-branch-32/bockbuild-mono-3.12.0-branch/profiles/mono-mac-xamarin/build-root/mono-3.12.0/mcs/class/System/System.Net/HttpWebRequest.cs:849
at System.Net.HttpWebRequest.GetRequestStream () [0x00057] in /private/tmp/source-mono-mac-3.12.0-branch-32/bockbuild-mono-3.12.0-branch/profiles/mono-mac-xamarin/build-root/mono-3.12.0/mcs/class/System/System.Net/HttpWebRequest.cs:865
at OpenQA.Selenium.Remote.HttpCommandExecutor.Execute (OpenQA.Selenium.Remote.Command commandToExecute) [0x00000] in <filename unknown>:0
at OpenQA.Selenium.Remote.DriverServiceCommandExecutor.Execute (OpenQA.Selenium.Remote.Command commandToExecute) [0x00000] in <filename unknown>:0
at OpenQA.Selenium.Remote.RemoteWebDriver.Execute (System.String driverCommandToExecute, System.Collections.Generic.Dictionary`2 parameters) [0x00000] in <filename unknown>:0
知道发生了什么事吗?提前谢谢!