【发布时间】:2015-02-07 16:45:10
【问题描述】:
我在我的 Mac 上安装了 Appium 和 Xcode,并尝试从 Windows VM 上的 Visual Studio 运行代码,但到目前为止没有成功。 Mac 上 Appium 的 General Settings 中的服务器地址和端口与 AppiumServers.cs 类中的相同(127.0.0.1:4723)。请协助。 正如所料,我得到的错误如下。
SetUp : OpenQA.Selenium.WebDriverException : Unexpected error. System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:4723
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
at System.Net.HttpWebRequest.GetRequestStream()
at OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute)
at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
【问题讨论】:
标签: c# visual-studio-2012 appium