I'm trying to run a Selenium WebDriver script written in Python on a Windows 7 64-bit box as a scheduled task.
The test works pretty well when run as a batch file from the command prompt, but when run as a scheduled task it fails horribly with errors like ElementNotVisibleExceptions or not being able to find elements.
I've tried running the tests as different users with no change in the outcome. I have tried to modify the TaskScheduler service to interact with the desktop but the option is ghosted.
Does anyone have experience in running tests like these as a scheduled task?
EDIT: I actually ended up figuring this out. Turns out my batch file had some bugs. After debugging it, running the Selenium script through the scheduled task worked fine.