Create screenshot of the page with Watin-like tool

2019-04-11 19:23发布

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. Go to the following page.
  2. Click button.
  3. Take a screenshot and save it.

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?

标签: testing watin
4条回答
唯我独甜
2楼-- · 2019-04-11 19:29

According to the WatiN features page:

  • Supports creating screenshots of webpages

I would direct you to more specifical documentation, but the documentation web doesn't work well with Firefox, so I can't search it.

查看更多
淡お忘
3楼-- · 2019-04-11 19:41

I know this is very old post but i want to leave a message for visitor of this post. PhantomJS is one option (http://www.phantomjs.org).

查看更多
别忘想泡老子
4楼-- · 2019-04-11 19:50

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.

查看更多
Rolldiameter
5楼-- · 2019-04-11 19:53
登录 后发表回答