【发布时间】:2019-09-26 17:59:39
【问题描述】:
在 ubuntu 18.04 上使用 node 和 mocha 运行 selenium webdriver ...
现在我收到了这些错误:
1) Google search automated testing
find the input box and google search button:
TimeoutError: Looking for element
Wait timed out after 15002ms
at /root/test/node_modules/selenium-webdriver/lib/webdriver.js:834:17
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
2) Google search automated testing
put keyword in search box and click search button:
TimeoutError: Looking for element
Wait timed out after 15005ms
at /root/test/node_modules/selenium-webdriver/lib/webdriver.js:834:17
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
[mochawesome] {
"killed": false,
"code": 3,
"signal": null,
"cmd": "xdg-open /root/test/mochawesome-report/mochawesome.html"
}
您需要提供哪些详细信息才能提供更多信息?有没有机会调试这个?
这是我玩 atm 的基地。 (https://github.com/bmshamsnahid/Automation-With-Selenium-And-Node.js)
【问题讨论】:
-
别以为我能找到答案……已经这样做了。
-
@DMart 我认为这是一个摩卡咖啡问题。刚刚安装它新鲜。不,我收到新错误*douh
-
找不到元素。在没有头的情况下运行它,看看会发生什么。请更新您使用的代码,您可能会输入错误的 Id 或类。
-
不,我已经检查了选择器......我认为这应该适合。我只是在玩这个例子:github.com/bmshamsnahid/Automation-With-Selenium-And-Node.js
标签: javascript selenium-webdriver npm mocha.js ubuntu-18.04