N
N
Ninazu2019-06-07 12:02:53
Google Chrome
Ninazu, 2019-06-07 12:02:53

Chrome Headless how to bypass wrong domain?

There is a task to create a screenshot of the site. I use Chrome in Headless mode via the command line.
Faced such problems.
1. Unable to create delayed screenshot
2. When trying to access an inaccessible site. The process hangs and does not return control.

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

Or crashes with an error
Segmentation fault (core dumped)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question