How to take screenshot of rendered HTML page

后端 未结 3 1826
遇见更好的自我
遇见更好的自我 2021-02-15 02:48

Our web analytics package includes detailed information about user\'s activity within a page, and we show (click/scroll/interaction) visualizations in an overlay atop the web pa

相关标签:
3条回答
  • 2021-02-15 03:20

    An article on Digital Inspiration points towards CutyCapt which is cross-platform and uses the Webkit rendering engine as well as IECapt which uses the present IE rendering engine and requires Windows, natch. Nothing off the top of my head which uses Gecko, Firefox's rendering engine.

    I doubt you're going to be able to get away from X, however. Since CutyCapt requires Qt, it requires either X or a Windows installation. And, similarly, IECapt will require Windows (or Wine if you want to try to run it under Linux, and then you're back to needing X). I doubt you'll be able to find a rendering engine which doesn't require Qt, Gtk, GDI, or Cocoa, and therefore requires a full install of display libraries.

    0 讨论(0)
  • 2021-02-15 03:33

    depending on the specifics of your needs perhaps you could get away with using one of the many free webpage thumbnail services? snapcasa, for example lets you generate thousands per month / no charge no advertizing .. (not ever used, just googled 'free thumbnail service') to find this.

    just a thot

    0 讨论(0)
  • 2021-02-15 03:37

    Why not store the HTML that is sent out to the client? You could then use that to redisplay in a webbrowser as a page to show what it looked like.

    Using your webanalytics data about use actions, you could they use that to default the combo boxes, fields etc to the values the client would have had, even change the CSS on buttons, etc, to mark them as being pushed.

    As a benefit, you don't need the X stack, don't need to do any crawling or storing of images.

    EDIT (Re Andrew Moore):

    This is were you store the current CSS/images under a version number. Place an easily parsable version number in a comment in the HTML. If you change your CSS/images and use the existing names, increment the version number in the HTML output sent out.

    The system that stores the HTML will know that it needs to grab a new copy and store under a new number. When redisplaying, it simply uses the version number to determine which CSS/image set to use.


    We currently have a system here that uses a very similiar system so we can track users actions and provide better support when they call our help desk, as they can bring up the users session and follow what they did, even some-what live.

    you can even code it to auto-censor sensitive fields when it is stored.

    0 讨论(0)
提交回复
热议问题