1

NodeJs を使用して Browserstack を駆動し、ページ上の特定の要素のスクリーンショットをキャプチャする方法があるかどうかは誰にもわかりませんか?

ありがとう!

4

3 に答える 3

2

PhantomJSを使用して実行できます。

ページ全体のスクリーンショット: Phantomjs - ウェブページのスクリーンショットを撮る

特定の要素のサイズにトリミングされたスクリーンショット: PhantomJS の要素にスクリーンショットをトリミングする

その他の PhantomJS の例: https://github.com/ariya/phantomjs/wiki/Examples

于 2013-12-24T06:08:51.493 に答える
0

まさにあなたが探しているもの:

https://github.com/firstandthird/stackshots

于 2014-02-21T07:47:51.963 に答える