2012-04-26 89 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版本集成。

相关问题