Selenium没有在Firefox 12.0上运行
Firefox升级到最新版本12.0后,Selenium无法工作。它失败,并显示以下消息。请告知,如果我使用旧版本的firefox,它仍然可以正常工作Selenium没有在Firefox 12.0上运行,selenium,testng,Selenium,Testng,Firefox升级到最新版本12.0后,Selenium无法工作。它失败,并显示以下消息。请告知,如果我使用旧版本的firefox,它仍然可以正常工作 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 *** LO
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
org.openqa.selenium.firefox.NotConnectedException:45000毫秒后无法连接到端口7055上的主机127.0.0.1。firefox控制台输出:
***LOG addons.xpi:启动
***LOG addons.xpi:跳过不可用的安装位置app system local
***LOG addons.xpi:跳过不可用的安装位置应用程序系统共享
***LOG addons.xpi:忽略名称不是有效加载项ID的文件条目:C:\Users\Abdul\AppData\Local\Temp\anonymous869859993705622974webdriver profile\extensions\webdriver staging
***LOG addons.xpi:检查更改
***LOG addons.xpi:未找到任何更改
位于org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:95)
位于org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:157)
位于org.openqa.selenium.remote.RemoteWebDriver。(RemoteWebDriver.java:93)
位于org.openqa.selenium.firefox.FirefoxDriver(FirefoxDriver.java:136)
位于org.openqa.selenium.firefox.FirefoxDriver(FirefoxDriver.java:78)
在Google.Open\u Google\u Firefox.Test\u Google\u Firefox(Open\u Google\u Firefox.java:13)
在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)处
位于sun.reflect.NativeMethodAccessorImpl.invoke(未知源)
在sun.reflect.DelegatingMethodAccessorImpl.invoke处(未知源)
位于java.lang.reflect.Method.invoke(未知源)
位于org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
位于org.testng.internal.Invoker.invokeMethod(Invoker.java:702)
位于org.testng.internal.Invoker.invokeTestMethod(Invoker.java:894)
位于org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1219)
位于org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
位于org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
位于org.testng.TestRunner.privateRun(TestRunner.java:768)
位于org.testng.TestRunner.run(TestRunner.java:617)
位于org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
在org.testng.SuiteRunner.runSequential上(SuiteRunner.java:329)
位于org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
运行(SuiteRunner.java:240)
位于org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
位于org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:87)
在org.testng.testng.runSuitesSequentially上(testng.java:1185)
位于org.testng.testng.runSuitesLocally(testng.java:1110)
位于org.testng.testng.run(testng.java:1022)
位于org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:109)
位于org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:202)
位于org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:173)
配置失败:@AfterMethod拆卸
。。
..
..
..如果您恢复到Firefox 11?(还是更低?)
如果您返回,但仍然存在问题,请查看Selenium的网站,并将其报告为错误。如果它确实是一个bug,如果其他人也报告了它,我也不会太惊讶。我在2.16中也遇到了同样的错误。升级到2.21.2允许我使用Firefox 12。卸载当前版本并重新安装Firefox的早期版本可以解决此问题
这是因为,最新版本的Firefox没有与当前的Selenium版本集成。您使用的是哪个版本的Selenium?