Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos 在MAC上使用Xamarin研究运行硒测试_Macos_Selenium Webdriver_Mono_Xamarin Studio - Fatal编程技术网

Macos 在MAC上使用Xamarin研究运行硒测试

Macos 在MAC上使用Xamarin研究运行硒测试,macos,selenium-webdriver,mono,xamarin-studio,Macos,Selenium Webdriver,Mono,Xamarin Studio,我正试图在使用Xamarin Studio的MAC上使用Selenium WebDriver在Visual Studio 2010上运行我创建的测试。我将chromedriver.exe作为嵌入式资源,因此我删除并添加了一个用于mac(chromedriver)的资源 看起来一切正常,但不允许我运行它们,因为我看到以下错误: OpenQA.Selenium.WebDriverException : Unexpected error. System.Net.WebException: Error:

我正试图在使用Xamarin Studio的MAC上使用Selenium WebDriver在Visual Studio 2010上运行我创建的测试。我将
chromedriver.exe
作为嵌入式资源,因此我删除并添加了一个用于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
OpenQA.Selenium.WebDriverException:意外错误。System.Net.WebException:错误:连接失败(连接被拒绝)--->System.Net.Sockets.SocketException:连接被拒绝
在/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
在/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
---内部异常堆栈跟踪的结束---
在/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中的System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asynchresult asyncResult asresult)[0x00045]
位于/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中的System.Net.HttpWebRequest.GetRequestStream()[0x00057]
在:0中的OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(OpenQA.Selenium.Remote.Command commandToExecute)[0x00000]处
在:0中的OpenQA.Selenium.Remote.DriverServiceCommandExecutor.Execute(OpenQA.Selenium.Remote.Command commandToExecute)[0x00000]处
在OpenQA.Selenium.Remote.RemoteWebDriver.Execute(System.String driverCommandToExecute,System.Collections.Generic.Dictionary`2参数)[0x00000]中:0

知道发生了什么吗?提前谢谢

@ElBandidoCan你可以禁用防火墙并再次检查请检查我的答案是的,它已经禁用,不工作。我遇到了相同的问题。你找到解决办法了吗?