首页 > 解决方案 > 获取“无法启动 Selenium 侦听器”。通过 saucelabs 运行 testcafe 脚本时出现错误消息

问题描述

我正在尝试通过 saucelabs 运行 testcafe 脚本。但收到以下错误消息。

MAIN failed to create listener on port 4445
MAIN possible socket error: libevent connection error
Failed to start Selenium listener. Please make sure there are no other applications using the Selenium port, or specify an alternative port for Sauce Connect via the --se-port option (exit code 2).

标签: seleniumtestingautomationtestcafesaucelabs

解决方案


看起来另一个应用程序已经使用了 4445 端口(请参阅此处的类似讨论)。此外,您可以使用官方 Saucelabs故障排除指南来解决此问题。


推荐阅读