Creating a screenshot
Solution 1:
There seems to be a cert error with the given url, the cert is invalid for the requested domain, this is probably the reason why firefox screenshot won't work in this example. Try either:
- Accept the cert as an exception in firefox and rerun headless firefox (it shouldn't hang anymore). If commandline is a must, this might help.
OR
- If firefox is not essential, try chromium with
--ignore-certificate-errors
:
chromium --headless --screenshot=output.jpg --ignore-certificate-errors https://developer.mozilla.com/en-US
PS:
-headless
is implied when using firefox --screenshot