gpt4 book ai didi

angularjs - Protractor 元素浏览器

转载 作者:搜寻专家 更新时间:2023-10-31 23:31:39 25 4
gpt4 key购买 nike

我正在尝试使用 Protractor elementExplorer,但不确定为什么我不能这样做(我使用的是 Mac)。

根据文档 - http://angular.github.io/protractor/#/debugging我要去 Protractor 目录 (use/local/bin) 并输入

node ./bin/elementexplorer.js

我收到以下错误:

module.js:340
throw err;
^
Error: Cannot find module '/usr/local/bin/bin/elementexplorer.js'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:902:3

有什么帮助吗?谢谢。

最佳答案

你需要cd进入protractor目录:

cd node_modules/protractor
node ./bin/elementexplorer.js

在你的情况下,node_modules 应该在 /usr/local/lib/ 下。

关于angularjs - Protractor 元素浏览器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28134570/

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