使用计划任务或 Windows 服务运行 WatiN [英] Running WatiN using Scheduled task or Windows service
问题描述
在命令窗口中正常执行时,我的用于文件下载的 WatiN 自动化工作正常.但是作为计划任务执行时,会因超时异常或找不到文件下载对话框异常而失败.
是否可以将 WatiN exe(带有文件下载对话框处理程序)作为计划任务执行.如果没有,还有其他方法可以将其作为计划任务执行.
注意:我看到一些博客提到使用 cc.net 运行 WatiN.那么,是否可以使用 cc.net 运行上述场景 cc.ent 文档及其工作的任何指针
如果您需要更多信息,请告诉我..
查看使用 CC.NET 执行此操作的解决方案.
Brett 和我为此工作了一段时间.问题在于以用户身份运行的 Windows 服务无法与桌面交互,但因为 WatiN 运行浏览器的真实实例,所以它需要一个桌面来与之交互.提供的链接中的解决方案可以向您展示如何执行此操作.
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..
Check out the solution to doing this using 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.
这篇关于使用计划任务或 Windows 服务运行 WatiN的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!