51Testing软件测试论坛

标题: selenium启动浏览器org.openqa.selenium.net.UrlChecker$TimeoutException超时报错 [打印本页]

作者: 测试积点老人    时间: 2022-2-15 13:28
标题: selenium启动浏览器org.openqa.selenium.net.UrlChecker$TimeoutException超时报错
谷歌浏览器-----
  1. Exception in thread "main" org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start.
  2. Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
  3. System info: host: 'DESKTOP-VK5P566', ip: '192.168.200.144', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_152'
  4. Driver info: driver.version: ChromeDriver
  5. at org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:202)
  6. at org.openqa.selenium.remote.service.DriverService.start(DriverService.java:188)
  7. at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:79)
  8. at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
  9. at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)
  10. at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:131)
  11. at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:181)
  12. at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:168)
  13. at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:123)
  14. at com.deyi.springboot02.selenium01.test01.openBrowser(test01.java:51)
  15. at com.deyi.springboot02.selenium01.test01.main(test01.java:17)
  16. Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://localhost:40138/status] to be available after 20011 ms

  17. IE浏览器-----无法访问http://--port=32579
  18. Exception in thread "main" org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start.
  19. Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
  20. System info: host: 'DESKTOP-VK5P566', ip: '192.168.200.144', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_152'
  21. Driver info: driver.version: InternetExplorerDriver
  22. at org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:202)
  23. at org.openqa.selenium.remote.service.DriverService.start(DriverService.java:188)
  24. at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:79)
  25. at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
  26. at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)
  27. at org.openqa.selenium.ie.InternetExplorerDriver.run(InternetExplorerDriver.java:221)
  28. at org.openqa.selenium.ie.InternetExplorerDriver.(InternetExplorerDriver.java:213)
  29. at org.openqa.selenium.ie.InternetExplorerDriver.(InternetExplorerDriver.java:150)
  30. at com.deyi.springboot02.selenium01.test01.openBrowser(test01.java:72)
  31. at com.deyi.springboot02.selenium01.test01.main(test01.java:17)
  32. Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://localhost:32579/status] to be available after 20016 ms
复制代码



作者: qqq911    时间: 2022-2-16 10:16
超时了
作者: 海海豚    时间: 2022-2-16 10:26
找下超时的原因
作者: kallinr    时间: 2022-2-16 12:34
超时
作者: jingzizx    时间: 2022-2-16 14:48
查看地址是否正确




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2