Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 98787

Getting Node Module Error (Cannot find module)

$
0
0

I am learning the Automated tests by using selenium web driver + Javascript and node.js.Everything is working fine when I ran that script.js from the Visual Studio code terminal(by using node main.js)

ProblemI want to schedule this script in the scheduler which automatically tests the login functionality. But when I try to run it from the task scheduler then it gives Error: Cannot find module

Error

Does anybody know how to get rid of this.


Viewing all articles
Browse latest Browse all 98787

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>