Selen abotring mit "UnreachableBrowserException/Address already in use" auftreten, auf einem computer

Ich habe ein java webdriver getrieben Selen Ausführung, die nicht mit einer Schleife über eine Liste geben verschiedene Informationen in ein Textfeld und senden Sie es mit der FirefoxDriver.

Auf einem computer, ganz reproduzierbar, nach dem 10ten oder 11ten iteration, die call of findElement(By.id("mi4")) wirft ein UnreachableBrowserException.

Jun 29, 2012 1:52:02 PM org.apache.http.impl.client.DefaultRequestDirector tryConnect
Information: I/O exception (java.net.BindException) caught when connecting to the target host: Address already in use: connect
Jun 29, 2012 1:52:02 PM org.apache.http.impl.client.DefaultRequestDirector tryConnect
Information: Retrying connect
Jun 29, 2012 1:52:02 PM org.apache.http.impl.client.DefaultRequestDirector tryConnect
Information: I/O exception (java.net.BindException) caught when connecting to the target host: Address already in use: connect
...
Exception in thread "main" org.openqa.selenium.remote.UnreachableBrowserException: Error communicating with the remote browser. It may have died.
Build info: version: '2.24.1', revision: '17205', time: '2012-06-19 15:28:49'
System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1', java.version: '1.7.0_04'
Driver info: driver.version: RemoteWebDriver
   at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:467)
   at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:242)
Caused by: java.net.BindException: Address already in use: connect
   at java.net.TwoStacksPlainSocketImpl.socketConnect(Native Method)
   at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
   at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
   at org.openqa.selenium.remote.HttpCommandExecutor.fallBackExecute(HttpCommandExecutor.java:337)
   at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:297)
   at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.execute(NewProfileExtensionConnection.java:136)

Es gibt keine Dritte Partei-Programm lauscht auf die ports. Jedoch, verwende ich zwei Instanzen von FirefoxDriver, D. H. zwei Firefox-Instanzen/Fenster geöffnet, in parallel, und die funktioniert ohne Probleme auf einem Win7 Rechner, das beschriebene problem tritt auf einem Windows XP-Rechner.

Ich benutze Firefox 13 mit Selen 2.24.1.

InformationsquelleAutor stracktracer | 2012-06-29
Schreibe einen Kommentar