【发布时间】: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