I am setting up a Windows scheduled task to run our Siesta tests on a regular schedule.
The Windows machine is accessed through RDP.
Setting up a scheduled task with the option "Run only when user is logged on" worked : the tests are run as expected, but (as the option suggests) only if a person is connected to the server through RDP at the time where the task is supposed to be run.
Since we don't want to have this restriction, I switched to selecting "Run whether user is logged in or not".
This leads to the Siesta tests failing with the following error :
[ERROR] Setup failed: Error: Can't create first page, runner: a Siesta.Launcher.Runner.WebDriverNodeJS, exception: WebDriverError: Process unexpectedly closed with status: 0
C:/siesta/bin/webdriver.bat 'https://user:password@mysite.com/tests' --headless --cap browser=firefox --report-format HTML --report-file tests_reports/2018-01-25_084001/html --report-format Junit --report-file tests_reports/2018-01-25_084001/junit.xml
I suppose that it is a Selenium-related error. Is there a way to fix it?
Note: Not sure if it is relevant, but if "Run whether user is logged in or not" is selected, then the error above always occur, whether I'm connected to the server through RDP or not.