Wednesday, June 8, 2011

Failed to connect to binary FirefoxBinary(C:\Program Files\Mozilla Firefox\firefox.exe) on port 7055 Problema Ao tentar executar os testes web utiliz

Problem

When trying to execute web tests with wedriver and Firefox the following error message appears:


org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(C:\Arquivos de programas\Mozilla Firefox\firefox.exe) on port 7055; process output follows:

##### IGeared_tavgpAVGTbApiComponent start
##### IGeared_tavgpAVGTbApiComponent init done
### go!ÿ
System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1', java.version: '1.6.0_14'
Driver info: driver.version: firefox
at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:91)
at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:117)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:64)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:100)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:92)
at br.com.leilao.estorias.concorrerleilao.DadoQueResgistrouConcorrerIpadComTempoParaDarLanceAhDezSegundosDeVencer.registrarConcorrenciaLeilao(DadoQueResgistrouConcorrerIpadComTempoParaDarLanceAhDezSegundosDeVencer.java:24)
at br.com.leilao.estorias.concorrerleilao.DadoQueResgistrouConcorrerIpadComTempoParaDarLanceAhDezSegundosDeVencer.registrarConcorrenciaAhProdutoNoLeilao(DadoQueResgistrouConcorrerIpadComTempoParaDarLanceAhDezSegundosDeVencer.java:18)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host localhost on port 7055 after 45000 ms
at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:87)
... 29 more.


Reason

Not identified

Solution

To use the 3.6 version of Firefox (I was using 4.x). It is a workaround while a definitive solution is found. Other sugestions could be found in this link: http://groups.google.com/group/webdriver/browse_thread/thread/3d0bbb40cce5dfac/e4844f5f91882602?lnk=raot&pli=1

It no worked to me.

No comments:

Post a Comment