Best place to run Selenium from? Windows Task Scheduler seems to be unstable.

1,088 views
Skip to first unread message

Rok Povšič

unread,
Jul 1, 2014, 10:15:13 AM7/1/14
to seleniu...@googlegroups.com
Hello,

Via Python I use Selenium to log to a website and download something automatically every day at 9:00

On Windows Server 2008 I've set up Task Scheduler to run the Python script.
I've tried the following:
- run *.py file directly from Task Scheduler
- run *.bat file from Task scheduler, where bat file contains "python file.py"

I've noticed that both are unstable when running automatically at the specified time (9:00). Sometimes the download happens and sometimes not. However, very time I run the Task Schedule by hand (with Run command), the download is successful.

Task Scheduler says that the program was run successfully.

I have this Task Scheduler and python script on a remote server to where I log via Remote Desktop Connection.

Is there some reason why these non stability appears?
Since Task Scheduler doesn't seem to perform well, should I use some other software to run my python script automatically?

Thank you for your answers and suggestions.

Rok

Doug Dragon

unread,
Jul 1, 2014, 1:16:17 PM7/1/14
to seleniu...@googlegroups.com
Hey Rok,
Have you checked the task's login option? Perhaps the user doesn't have appropriate access? Check out the attached image for a screenshot. This may or may not be part of the problem but it has bitten me in the past when setting up a similar task.


Hope that helps,
-Doug
task_scheduler_options.png
Reply all
Reply to author
Forward
0 new messages