This repository was archived by the owner on Nov 29, 2018. It is now read-only.
This repository was archived by the owner on Nov 29, 2018. It is now read-only.
getText() can fail on 'found' element with InterruptedException #2913
Open
Description
Originally reported on Google Code with ID 2913
Se 2.13 & Firefox 3.6.23
I'll work towards a reproduction, but here is a stack trace on the RemoteWebDriver
side of a divide:
java.lang.InterruptedException
at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(Unknown
Source)
at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at org.openqa.selenium.remote.server.DefaultSession.execute(DefaultSession.java:139)
at org.openqa.selenium.remote.server.handler.WebDriverHandler.handle(WebDriverHandler.java:44)
at org.openqa.selenium.remote.server.rest.ResultConfig.handle(ResultConfig.java:188)
at org.openqa.selenium.remote.server.DriverServlet.handleRequest(DriverServlet.java:573)
at org.openqa.selenium.remote.server.DriverServlet.doGet(DriverServlet.java:503)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at org.openqa.selenium.remote.server.DriverServlet.service(DriverServlet.java:477)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.openqa.jetty.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
at org.openqa.jetty.jetty.servlet.ServletHandler.dispatch(ServletHandler.java:677)
at org.openqa.jetty.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
at org.openqa.jetty.http.HttpContext.handle(HttpContext.java:1530)
at org.openqa.jetty.http.HttpContext.handle(HttpContext.java:1482)
at org.openqa.jetty.http.HttpServer.service(HttpServer.java:909)
at org.openqa.jetty.http.HttpConnection.service(HttpConnection.java:820)
at org.openqa.jetty.http.HttpConnection.handleNext(HttpConnection.java:986)
at org.openqa.jetty.http.HttpConnection.handle(HttpConnection.java:837)
at org.openqa.jetty.http.SocketListener.handleConnection(SocketListener.java:243)
at org.openqa.jetty.util.ThreadedServer.handle(ThreadedServer.java:357)
at org.openqa.jetty.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
The page in question is part static, and par dynamic (automatically loading immediately
after the initial page load).
The widget in question is found during the initial page load, but modified (somehow)
by the async stage. findElement works just fine (with a waitFor). getText() fails,
and one the browser side issues the exception above.
By the time the exception arrives over the wire to the test-script side, it's been
wrapped in a totally generic WebDriverException.
- Paul
Reported by [email protected]
on 2011-11-22 22:42:50