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
Does anybody know how to get rid of this.