2012-04-26 70 views
8

在Firefox升級到最新版本12.0之後,Selenium無法正常運行。以下消息失敗。請指教,如果我使用舊版本的Firefox,它仍然可以正常工作。Selenium未與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

您使用的是什麼版本的硒? – 2012-04-27 08:55:19

+0

硒2.16.0 – 2012-04-27 19:08:44

回答

8

我在2.16有這個相同的錯誤。升級到2.21.2允許我使用Firefox 12

+0

我升級到2.21.0,現在工作正常。謝謝 – 2012-04-27 19:09:19

0

如果你恢復到Firefox 11? (還是低了?)

如果恢復,它仍然是一個問題,對硒的網站一看,其報告爲一個錯誤。如果確實是一個錯誤,如果其他人也報告過,我不會感到驚訝。

+0

是的,它爲以前的版本工作正常。 – 2012-04-27 19:09:45

2

卸載當前版本並重新安裝Firefox以前的版本解決了這個問題。

這是因爲,最新版本的Firefox沒有與當前的Selenium版本集成。

相關問題