使用计划任务或 Windows 服务运行 WatiN

发布于 2024-08-30 18:27:09 字数 259 浏览 2 评论 0原文

当在命令窗口中正常执行时,我用于执行文件下载的 WatiN 自动化工作正常。但作为计划任务执行时,会因超时异常或文件下载对话框未找到异常而失败。

是否可以将 WatiN exe(带有文件下载对话框处理程序)作为计划任务执行。如果否,还有其他方法可以将其作为计划任务执行。

注意:我看到一些博客提到使用 cc.net 运行 WatiN。那么,是否可以使用 cc.net 运行上述场景?有关 cc.ent 文档及其工作的任何指针,

请告诉我您是否需要更多信息。

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

や莫失莫忘 2024-09-06 18:27:09

查看使用 CC.NET 执行此操作的解决方案。

Watin 测试在 CC.Net 上失败

Brett 和我一起工作这个暂时。问题在于,以用户身份运行的 Windows 服务无法与桌面交互,但由于 WatiN 运行浏览器的真实实例,因此需要桌面与之交互。提供的链接中的解决方案可以向您展示如何执行此操作。

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.

恍梦境° 2024-09-06 18:27:09

我在使用 Windows 调度程序时遇到问题,所以我只是切换到“平滑程序调度程序”,它就工作了

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文