Create screenshot of the page with Watin-like tool

11,771

Solution 1

Watin can capture screenshots:

ie.CaptureWebPageToFile("c:\tmp\watin main page.jpg");

More info:

http://watin.sourceforge.net/releasenotes-1-2-0-4000.html http://fwdnug.com/blogs/ddodgen/archive/2008/06/19/watin-api-capturewebpagetofile.aspx

Solution 2

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

Share:
11,771
Admin
Author by

Admin

Updated on June 05, 2022

Comments

  • Admin
    Admin about 2 years

    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?