How to capture current visual state of page?

随声附和 提交于 2021-01-27 18:40:34

问题


I need to capture the current visual state of a webpage. I have seen a few different solutions such as HTML2canvas or node-webshot. The problem is that I need to be able to capture the current state of the page rather than just the html from a given url.

E.g if a user goes to a URL and clicks on a few options which change the UI through ajax I need to be able to capture the page as it is to the user at any given time.

Basically I need to take a screenshot ( most likely using javascript ) of the current state of a web page. Im wondering if anyone has an suggestions as to what the best way to go about doing this would be?

来源:https://stackoverflow.com/questions/20447830/how-to-capture-current-visual-state-of-page

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!