New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 842149 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner:
Closed: Dec 5
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

How to use both screenshot and dump-dom switches ?

Reported by xavier.c...@gmail.com, May 11 2018

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36

Steps to reproduce the problem:
1. /usr/bin/google-chrome-stable --no-sandbox --headless --disable-gpu --window-size=1280,768 "https://www.google.fr:443" --dump-dom => produce dom result to the screen: OK

2. /usr/bin/google-chrome-stable --no-sandbox --headless --disable-gpu --window-size=1280,768 "https://www.google.fr:443" --screenshot=test.png => produce screenshot into a PNG file named test.png : OK

3. /usr/bin/google-chrome-stable --no-sandbox --headless --disable-gpu --window-size=1280,768 "https://www.google.fr:443" --dump-dom --screenshot=test.png => produce ONLY dom result but no screenshot png file: KO

What is the expected behavior?
How to get the html result AND a screenshot both?

The command 1 produce the dom content to the screeen
The command 2 produce the png file of a screenshot

What went wrong?
The command 3 produce the dom content to the output but not the PNG file of the screenshot!

Did this work before? N/A 

Chrome version: 66.0.3359.139  Channel: stable
OS Version: Ubuntu 16.04.3
Flash Version: 

It seems that the two switches --screenshot AND --dump-dom are incompatible? 

The question is: How to get the html result AND a screenshot both?
 
Cc: sindhu.chelamcherla@chromium.org
Components: Internals>Headless
Labels: M-68 Triaged-ET FoundIn-68 Target-68
Status: Untriaged (was: Unconfirmed)
Able to reproduce this issue on reported version 66.0.3359.139 and latest canary 68.0.3429.0 using Ubuntu 17.10.

This issue is seen from M-60. Hence considering this issue as Non-Regression and marking as Untriaged. Could someone from Internals>Headless team please have a look at this issue.

Thanks!

Comment 2 by caseq@chromium.org, May 14 2018

Cc: alexclarke@chromium.org
Components: -Platform>DevTools
Owner: caseq@chromium.org
Status: Assigned (was: Untriaged)
Currently HeadlessShell doesn't support this, although it could do.  
My inclining is to suggest using Puppeteer to achieve this.
Status: WontFix (was: Assigned)

Sign in to add a comment