Running WatiN using Scheduled task or Windows serv

2019-07-26 15:47发布

My WatiN automation for doing file download is working fine when executed in command window normally. But failing with timeout exceptions or fileDownload Dialog not found exception when executed as a scheduled task.

Is it possible to execute WatiN exe (with filedownload dialog handler) as a scheduled task. If NO is there any other way to execute it as a schedule task.

Note: I have seen some blogs referring to running WatiN using cc.net. So, is it possible to run above scenario using cc.net Any pointers for cc.ent documentation and its working

Let me know if u require any more informations..

3条回答
beautiful°
2楼-- · 2019-07-26 16:27

For this to work, you have to enable desktop interaction and have that user logged in. If you are running this on a server, here's a clever way to start your process and make sure it has desktop access.

查看更多
对你真心纯属浪费
3楼-- · 2019-07-26 16:27

Check out the solution to doing this using CC.NET.

Watin Tests fail on CC.Net

Brett and I worked on this for awhile. The problem is that Windows Services running as a user cannot interact with the desktop, but because WatiN runs a real instance of the browser it requires a desktop to interact with. The solution in the link provided can show you how to do this.

查看更多
虎瘦雄心在
4楼-- · 2019-07-26 16:28

i had a problem with windows scheduler so i just switched to "smooth program scheduler" and it just worked

查看更多
登录 后发表回答