运行IE驱动程序测试时由InterruptedException引起的WebDriverException

时间:2015-09-14 23:10:22

标签: java internet-explorer selenium-webdriver remotewebdriver

目前使用selenium 2.46

运行一组用Java编写的测试用例

我想与Chrome,Firefox和IE竞争。

但是,对于IE,我会间歇性地获得以下堆栈跟踪:

Caused by: java.lang.InterruptedException
    at java.util.concurrent.FutureTask.awaitDone(Unknown Source)
    at java.util.concurrent.FutureTask.get(Unknown Source)
    at org.openqa.selenium.remote.server.DefaultSession.execute(DefaultSession.java:177)
    at org.openqa.selenium.remote.server.handler.WebDriverHandler.handle(WebDriverHandler.java:43)
    at org.openqa.selenium.remote.server.rest.ResultConfig.handle(ResultConfig.java:202)
    at org.openqa.selenium.remote.server.JsonHttpRemoteConfig.handleRequest(JsonHttpRemoteConfig.java:192)
    at org.openqa.selenium.remote.server.DriverServlet.handleRequest(DriverServlet.java:174)
    at org.openqa.selenium.remote.server.DriverServlet.doPost(DriverServlet.java:140)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at org.openqa.selenium.remote.server.DriverServlet.service(DriverServlet.java:112)
    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:680)
    at org.openqa.jetty.jetty.servlet.ServletHandler.handle(ServletHandler.java:571)
    at org.openqa.jetty.http.HttpContext.handle(HttpContext.java:1526)
    at org.openqa.jetty.http.HttpContext.handle(HttpContext.java:1479)
    at org.openqa.jetty.http.HttpServer.service(HttpServer.java:920)
    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:358)
    at org.openqa.jetty.util.ThreadPool$PoolThread.run(ThreadPool.java:537)

有什么线索可以触发这个?

0 个答案:

没有答案