Comment #10 on issue 3592 by
RJZo...@gmail.com: Intermittent XPath finding
I added the code that you mentioned and ran the program 3 times. The first
two times Firefox crashed before the program was able to finish, and the
following text was output to the console:
Exception in thread "main"
org.openqa.selenium.remote.UnreachableBrowserException: Error communicating
with the remote browser. It may have died.
Build info: version: '2.22.0', revision: '17049', time: '2012-05-29
13:32:46'
System info:
os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.7.3',
java.version: '1.6.0_31'
Driver info: driver.version: RemoteWebDriver
at
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:453)
at
org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:226)
at
org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(RemoteWebDriver.java:311)
at
org.openqa.selenium.By$ByXPath.findElement(By.java:343)
at
org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:218)
at
com.instarta.selenium.bug.test.twenty.two.zero.SeleniumBugWithWaits.main(SeleniumBugWithWaits.java:42)
Caused by: org.apache.http.conn.HttpHostConnectException: Connection to
http://127.0.0.1:7055 refused
at
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:158)
at
org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:150)
at
org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121)
at
org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:575)
at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:425)
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
at
org.openqa.selenium.remote.HttpCommandExecutor.fallBackExecute(HttpCommandExecutor.java:320)
at
org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:281)
at
org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.execute(NewProfileExtensionConnection.java:128)
at
org.openqa.selenium.firefox.FirefoxDriver$LazyCommandExecutor.execute(FirefoxDriver.java:289)
at
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:431)
... 5 more
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432)
at java.net.Socket.connect(Socket.java:529)
at
org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:123)
at
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:148)
... 15 more
The third time the program output the text as expected, but then gave me
an error at the very end that read: "Command failed to close cleanly.
Destroying forcefully (v2).
org.openqa.selenium.os.UnixProcess$SeleniumWatchDog@45c3987"