3
Help us understand the problem. What are the problem?

More than 5 years have passed since last update.

Organization

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

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]

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Sign upLogin
3
Help us understand the problem. What are the problem?