iOS的自动化的时代,采用100#/ Visual Studio中(Appium iOS autom

2019-10-21 10:02发布

我安装Appium和Xcode中我的Mac上,并试图运行从Visual Studio在Windows VM代码,但没有成功为止。 服务器在Appium Mac上的常规设置地址和端口是相同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)

Answer 1:

我想我管理。 问题是与IP地址。 127.0.0.1是本地的。 我需要改变我试图连接到MacBook Pro的IP的IP地址。



文章来源: Appium iOS automation using C#/Visual Studio