I\'d like to be able to take my DOM, as is, and convert it to a string. Let\'s say I open up the inspector and make a change to the margin-left property of a particular ele
Chrome feature - Printing the DOM: The --dump-dom flag prints document.body.innerHTML to stdout:
--dump-dom
document.body.innerHTML
chrome --headless --disable-gpu --dump-dom https://www.chromestatus.com/
Read more