问题描述
我们要测试在Linux上的外壳我们的网页。出于这个原因我正在寻找一个shell工具,它获取的HTML页面从服务器(如'wget的'),然后执行其中包含的JavaScript,包括图片等。在此之后,该工具应该给我一个渲染页面的截图,这样我可以创建该屏幕的校验和。 (所以我想一样在Windows浏览器中打开,打开网页并进行页面加载后的截图,但在Linux上)
谁能给我一个提示?
we want to test our webpages on linux shell. For that reason I'm looking for a shell tool, which gets the html page from server (like 'wget') and then executes contained Javascript, include pictures and so on. After this, the tool should give me a 'screenshot' of the rendered page, so that I can create a checksum for that screen. (So I want to the same as opening browser in Windows, open webpage and make a screenshot after page load, but on linux)Can anyone give me a hint?
推荐答案
如果你的意思是命令行工具,也许 webkit2png 会工作。注意,它使用的Webkit渲染引擎,所以你会看到,该网站将如何看待的Safari或Chrome。另请参见。
If you meant "commandline tool", perhaps webkit2png would work. Note that it uses Webkit rendering engine, so you'll see how the site would look on Safari or Chrome. See also khtml2png.
这篇关于外壳工具,它使得网站包括JavaScript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!