gpt4 book ai didi

angularjs - Protractor - 启动 webdriver-manager 时出错,seleniumProcess.pid : undefined

转载 作者:行者123 更新时间:2023-12-03 08:21:27 27 4
gpt4 key购买 nike

我在 node_modules\protractor 中使用 Windows 7 启动 webdriver-manager 时遇到问题。命令是:

node webdriver-manager start

然后我收到以下错误信息:

seleniumProcess.pid: undefined
events.js:85
throw er; // Unhandled 'error' event
^
Error: spawn ENOENT
at exports._errnoException (util.js:742:11)
at Process.ChildProcess._handle.onexit (child_process.js:1028:32)
at child_process.js:1109:20
at process._tickCallback (node.js:343:11)
at Function.Module.runMain (module.js:492:11)
at startup (node.js:124:16)
at node.js:807:3

在互联网上搜索后,我找不到与我类似的seleniumProcess.pid 未定义的问题。

以下是 java -version 的输出:

java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

有什么想法吗?

最佳答案

好的,我明白了我遇到这个问题的原因。你只有JRE,但是

You will need to have the Java Development Kit (JDK) installed to run the standalone Selenium Server. Check this by running java -version from the command line. Tutorial

在 Ubuntu 上我已经完成

$ sudo apt-get install openjdk-7-jdk

现在我有了这个 Java:

$ java -version
java version "1.7.0_95"
OpenJDK Runtime Environment (IcedTea 2.6.4) (7u95-2.6.4-0ubuntu0.15.10.1)
OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)

并且 webdriver-manager start 工作。

关于angularjs - Protractor - 启动 webdriver-manager 时出错,seleniumProcess.pid : undefined,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27615986/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com