Running WatiN using Scheduled task or Windows service

╄→尐↘猪︶ㄣ 提交于 2019-12-24 07:42:50

问题


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..


回答1:


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.




回答2:


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



来源:https://stackoverflow.com/questions/2719047/running-watin-using-scheduled-task-or-windows-service

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!