1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

githubのTrendingになっているchromelessをWindowsで試す

Posted at

windowsでchromelessのexsampleを試すまで

chromeless

下記を参考にnodistをインストール
http://qiita.com/satoyan419/items/56e0b5f35912b9374305

nodist + v8.0.0 //node v 6.0.0とかだとasync functionが使えないのでv7.0.0以上にすること
nodist v8.0.0
node -v //確認
npm install chromeless
cd C:\Users\ryo-sato\AppData\Local\Google\Chrome SxS\Application //chromeのパス
chrome.exe --romote-debugging-port=9222  --disable-gpu --headless

・C:直下にtmpフォルダを作る //スクリーンショット用
・C:\nodeのフォルダを作る //スクリプトを置く場所
・C:\node\testにexsampleスクリプトを記載

cd C:\node
node test

これでC:\tmpに下記の感じでchromeのスクリーンショットが保存される。

[https://gyazo.com/d923a2cc564e0b8145f73b60334b56cb]

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?