While trying to run Selenium webdriver with Node and Mocha on Ubuntu 18.04, I encountered the following errors:
1) Google search automated testing
find the input box and google search button:
TimeoutError: Element not found
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: Element not found
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"
}
What additional details do you require? Is there a way to debug this issue?
I am currently using this repository as my base for experimentation. (https://github.com/bmshamsnahid/Automation-With-Selenium-And-Node.js)