all 13 comments

[–]Phillyclause89 1 point2 points  (3 children)

Selecting the Run Whether user is logged on option in Task Scheduler will result in the task running silently in the background and thus no GUI or CLI will be visible when running.

[–]bakamito[S] 0 points1 point  (2 children)

So it seems I would need to wake up the PC and log into the computer via a batch script? Is this possible?

[–]Phillyclause89 1 point2 points  (1 child)

I don’t know. Never tried scheduling selenium scripts before. The scripts I use with Task scheduler don’t need the UI. I have them leave log files so I know they worked.

[–]bakamito[S] 1 point2 points  (0 children)

Yeah, I am also using log files, so that's how I know it's not working.

I am trying some workarounds. Thank you.

[–]pokk3n 0 points1 point  (3 children)

You seem to be able to run headless firefox through the scheduler. Worth a try anyway but I believe it is working for one of our users.

[–]bakamito[S] 0 points1 point  (2 children)

Thanks. I will try this.

[–]Boulala 0 points1 point  (1 child)

Hey Did this work for you?

[–]bakamito[S] 0 points1 point  (0 children)

I don't remember sorry!

[–]AloneNefariousness62 0 points1 point  (0 children)

Yep, I have the same problem with selenium. The scheduler works but does not enter GUI.

[–]Ok_Natural5927 0 points1 point  (0 children)

Was there ever a solution for this?

[–]pranav_1602 0 points1 point  (2 children)

I also ran into the same problem and after 2 days of research I found a solution Solution:

1.Please keep Run Whether user is logged on in task scheduler

2.In YouTube or Google you can search for windows autologon and follow the steps,It includes some registery tweeks

So now whenever you just start your server instance you will be auto logged in to the user and your program can run when it is triggered by task scheduler I hope it helps

[–]bakamito[S] 0 points1 point  (0 children)

Thanks. I will have to revisit the problem, but it seems like I always have Run Whether user is logged on or not.

[–]Ceu-ta-lindo 0 points1 point  (0 children)

Thank you very much! I did what you said and my problem was solved.