Headless Chrome how to bypass the incorrect domain?

The challenge is to create a screenshot of the website. Use Chrome in Headless mode via the command line.
Faced with such problems.
1. You cannot create a screenshot with a delay
2. When you try to access the inaccessible website. The process hangs and does not give control back.

chromium-browser --headless --disable-gpu --screenshot --no-sandbox --window-size=640,480 https://asdfasdfasdfasdfsdf.com

Or crashes with an error
Segmentation fault (core dumped)
March 23rd 20 at 19:30
0 answer

Find more questions by tags Google Chrome