Selenium java.lang.IllegalStateException:并行启动Chrome WebDrivers时连接池关闭

Selenium java.lang.IllegalStateException:并行启动Chrome WebDrivers时连接池关闭,selenium,webdriver,Selenium,Webdriver,使用testng并行执行启动多个chrome驱动程序时面临连接池关闭问题 使用的依赖项:webdrivermanager版本:1.6.2 有什么解决方案吗?你能粘贴你所做的代码以及你收到的错误日志吗?[2017-07-24 14:46:24:982][TestNG test=Smoke test-2]WARN BrowserManager-[1/3]异常读取https://chromedriver.storage.googleapis.com/ 寻找[镀铬器]:java.lang.Illegal

使用testng并行执行启动多个chrome驱动程序时面临连接池关闭问题

使用的依赖项:webdrivermanager版本:1.6.2


有什么解决方案吗?

你能粘贴你所做的代码以及你收到的错误日志吗?
[2017-07-24 14:46:24:982][TestNG test=Smoke test-2]WARN BrowserManager-[1/3]异常读取https://chromedriver.storage.googleapis.com/ 寻找[镀铬器]:java.lang.IllegalStateException连接池关闭java.lang.IllegalStateException:org.apache.http.util.Asserts.check(Asserts.java:34)org.apache.http.pool.AbstractConnPool.AbstractConnPool.java:189)org.apache.http.impl.conn.poolightClientConnectionManager.requestConnection(PoolighttpClientConnectionManager.java:257)
有人能帮我找到解决方案吗?请添加您正在使用的关键代码部分。您似乎正在关闭连接池,然后再次尝试使用它。可能一个线程正在关闭连接池,另一个线程希望重用它?