【问题标题】:Protractor Selenium Standalone server is getting timeout errorProtractor Selenium Standalone 服务器出现超时错误
【发布时间】:2020-10-31 19:50:14
【问题描述】:

当我执行我的测试项目时,我遇到了错误

node:70468) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use 
os.tmpdir() instead.
[15:07:12] I/launcher - Running 1 instances of WebDriver
[15:07:12] I/local - Starting selenium standalone server...
[15:07:46] E/launcher - Error: Error: Timed out waiting for the WebDriver server at http://172.25.144.1:56412/wd/hub
    at onError (C:\Users\xxxx\Documents\workspace\xxx\Automation\xxx-automation\web\node_modules\selenium-webdriver\http\util.js:102:16)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
[15:07:46] E/launcher - Process exited with error code 100

量角器版本:5.1.2 和 Selenium 独立服务器 3.12.0

【问题讨论】:

  • 你能添加你的配置文件详细信息吗?
  • 错误非常清晰简洁os.tmpDir() is deprecated. Use os.tmpdir() instead
  • @DebanjanB,这只是一条警告消息。实际的错误是不同的。
  • @Murthi 但是你又遇到了一个错误Timed out waiting for the WebDriver server at http://172.25.144.1:56412/wd/hub。您可以使用 Selenium Server 的启动命令和跟踪日志更新问题吗?
  • @DebanjanB 我不是这个问题的 OP。

标签: selenium protractor


【解决方案1】:

问题是 selenium 独立服务器会自动从他们的商店中设置一个随机主机来启动 selinum Web 驱动程序。 在这种情况下,连接的服务器没有响应客户端。 然后我连接到一个不同的网络并重新构建它改变 selenium 服务器主机的项目。

Selenium standalone server started at http://10.0.75.1:64132/wd/hub

它解决了这个问题..

感谢您的支持......

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-03-21
    • 2010-12-04
    • 2012-12-01
    • 2016-02-18
    • 2017-06-15
    • 2014-05-28
    • 2019-12-22
    相关资源
    最近更新 更多