I want to take a screenshot of a webpage from the command line. I have managed to achieve this in Chrome and Firefox using the following command:
"c:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --headless --screenshot="C:\tmp\screen.png" --window-size=1280,720 "https://bbc.co.uk/news"
I'm trying to do the same using Microsoft Edge but can't seem to find any info. My thinking is that 99% of Windows machines will have this preinstalled and in the same location.