2012-04-26 12 views
8

Selenium no funciona después de que Firefox se actualizó a la última versión 12.0. Está fallando con el mensaje a continuación. Por favor, avise, todavía funciona bien si uso una versión anterior de Firefox.Selenium no se está ejecutando con Firefox 12.0

org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output: 
*** LOG addons.xpi: startup 
*** LOG addons.xpi: Skipping unavailable install location app-system-local 
*** LOG addons.xpi: Skipping unavailable install location app-system-share 
*** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID: C:\Users\Abdul\AppData\Local\Temp\anonymous869859993705622974webdriver-profile\extensions\webdriver-staging 
*** LOG addons.xpi: checkForChanges 
*** LOG addons.xpi: No changes found 

    at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:95) 
    at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:157) 
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:93) 
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:136) 
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:78) 
    at Google.Open_Google_Firefox.Test_Google_FireFox(Open_Google_Firefox.java:13) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 
    at java.lang.reflect.Method.invoke(Unknown Source) 
    at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80) 
    at org.testng.internal.Invoker.invokeMethod(Invoker.java:702) 
    at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:894) 
    at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1219) 
    at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127) 
    at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111) 
    at org.testng.TestRunner.privateRun(TestRunner.java:768) 
    at org.testng.TestRunner.run(TestRunner.java:617) 
    at org.testng.SuiteRunner.runTest(SuiteRunner.java:334) 
    at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329) 
    at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291) 
    at org.testng.SuiteRunner.run(SuiteRunner.java:240) 
    at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53) 
    at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:87) 
    at org.testng.TestNG.runSuitesSequentially(TestNG.java:1185) 
    at org.testng.TestNG.runSuitesLocally(TestNG.java:1110) 
    at org.testng.TestNG.run(TestNG.java:1022) 
    at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:109) 
    at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:202) 
    at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:173) 
FAILED CONFIGURATION: @AfterMethod tearDown 

.. .. .. ..

+1

¿Qué versión de selenio estás usando? –

+0

selenio 2.16.0 –

Respuesta

8

Tuve este mismo error con 2.16. La actualización a 2.21.2 me permitió usar Firefox 12.

+0

Actualicé a 2.21.0 y está funcionando bien ahora. Gracias –

0

Y si vuelve de nuevo a Firefox 11? (o inferior?)

Si vuelve y sigue siendo un problema, eche un vistazo al sitio web de Selenium y repórtelo como un error. Si de hecho es un error, no me sorprendería demasiado si otros también lo hubieran informado.

+0

Sí, funciona bien para la versión anterior. –

2

La desinstalación de la versión actual y la reinstalación de la versión anterior de Firefox resuelven este problema.

Esto se debe a que la última versión de Firefox no está integrada con la versión actual de Selenium.

Cuestiones relacionadas