En W2k8 64 bit tengo en la instancia del emulador de Android Android API 4.1 Nivel 16 con ARM como CPU. Después del lanzamiento del mismo estoy corriendo mi unittest y en la primera líneaNo se puede inicializar AndroidDriver
var webDriver = new AndroidDriver("http://localhost:8080/wd/hub"); //also with no argument
Tengo una excepción:
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:8080
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, 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)
versión de este WebDriver es 2.25.1.0.
he seguido este artículo:
http://www.nishantverma.com/2011/06/installing-webdriver-on-android.html
Cuando estoy usando otros pilotos como Firefox- o ChromeDriver funciona bien.
Estaría agradecido por cualquier consejo
Gracias por su respuesta. Lo he hecho ahora de acuerdo con las instrucciones de http://www.nishantverma.com/2011/06/installing-webdriver-on-android.html pero no puedo conectarme (404) al http: // localhost: 8080/wd/hub. También no hay comunicación "embarcadero comenzó". Y, por supuesto, el error en el código sigue siendo el mismo. – user278618