Monday, 17 April 2017

How can I run selenium webdriver script with windows task scheduler?

I am using selenium webdriver js which runs on Node.js

To run my webdriver tests I simply open up a terminal, cd to my project directory and type mocha test.

I want to schedule a task that does this in windows task scheduler but while I can get cmd.exe to fire up I don't know how to format the argument to get it to run "mocha test". tried /C "mocha test" and -command "mocha test" but I get an error: one or more arguments are invalid"



via Rup

No comments:

Post a Comment