Hi.
I run something like
chrome --headless --disable-gpu --enable-logging --dump-dom
https://my.url/
I get an html file, which is supposed to contain the source code the browser will be working on. However, when I open a chrome window, visit that site and view the source code, I see something different. Maybe some Javascript is changing things - but that's supposed to be taken care by the headless mode (indeed, if I fetch the file using curl or something like that, I get a yet different file. Evidently the headless chrome executes the JS, but maybe not all of it. Or may it be something other than JS that's changing things?)
How can I convince the headless chrome to give me the real (final) version that the user of the windowed chrome will see?