Chrome on Windows 10 - Screenshot of website

40 views
Skip to first unread message

Tioman Island

unread,
May 24, 2018, 5:51:32 PM5/24/18
to Chrome DevTools
I read that you can take screenshot with Chrome command line. No matter what I do, Chrome will just exit and there won't be any image saved in that folder. If I omit parameters Chrome will open a new window and load the website from the parameter but if I run it as suggested no screenshot can be found anywhere. What am I doing wrong?

I am using this command:
chrome.exe --headless --disable-gpu --screenshot=C:\Temp\screenshot.png https://www.google.com/
As explained on this page: 
https://medium.com/war-code/getting-started-with-headless-chrome-on-windows-9e39c830dd78

PhistucK

unread,
May 24, 2018, 5:52:46 PM5/24/18
to Google Chrome Developer Tools
headless-dev might be more helpful.


PhistucK


--
You received this message because you are subscribed to the Google Groups "Chrome DevTools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-develo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-chrome-developer-tools/d9ec4635-d3a2-4ab4-b3d7-8bd847c2234f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tioman Island

unread,
May 24, 2018, 5:54:55 PM5/24/18
to Chrome DevTools
I don't understand. I tried with headless-dev --- nothing happens

PhistucK

unread,
May 24, 2018, 6:49:56 PM5/24/18
to Google Chrome Developer Tools
Did you go to the link? It is a more appropriate group for discussing headless issues.

PhistucK


On Fri, May 25, 2018 at 12:54 AM Tioman Island <tioman...@gmail.com> wrote:
I don't understand. I tried with headless-dev --- nothing happens

--
You received this message because you are subscribed to the Google Groups "Chrome DevTools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-develo...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages