使用类似 Watin 的工具创建页面截图 [英] Create screenshot of the page with Watin-like tool

查看:25
本文介绍了使用类似 Watin 的工具创建页面截图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要通过向命令行工具提供页面 URL 来创建页面的屏幕截图.我找到了以下应用程序:将 HTML 转换为图像.这个工具还可以,但需要更灵活的应用程序.我需要有能力执行以下操作:

I need to create a screenshot of the page by providing a page URL to the command line tool. I found the following application: Convert HTML To Image. This tool is OK but want a more flexible application. I need to have ability to perform the following:

  1. 转到以下页面.
  2. 点击按钮.
  3. 截取屏幕截图并保存.

我想创建一个应用程序,该应用程序将通过访问 URL 来测试网站,拍摄照片,然后将图像发送到电子邮件.

I want to create an application that will test a site by going by URL, take a shots, and then send the images to the email.

有人有解决此类问题的经验吗?

Does anybody has an experience in solving such problems?

推荐答案

我是 WatiN 项目的贡献者,也是 WatiN 测试记录器的作者.为了做你想做的事,我建议使用类似 csExWB2 (http://code.google.com/p/csexwb2/).该演示将为您提供基本浏览器,您可以在您喜欢的地方添加屏幕截图.电子邮件不包括在内,但这应该相当容易.

I am a contributor to the WatiN project and the author of the WatiN Test Recorder. To do what you want, I'd suggest using something like csExWB2 (http://code.google.com/p/csexwb2/). The demo will give you the basic browser, and you can add screen shots where you like. Emailing is not covered, but that should be fairly easy.

这篇关于使用类似 Watin 的工具创建页面截图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆