Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • does not work, without chromeOptions.add_argument("--headless") the webpage opens up , but with it , it throws the error mentioned in question. Thanks Commented Jul 15, 2020 at 2:17
  • Run the site manually in headless from or combine the remote debugging port with your option tags : chrome --headless --remote-debugging-port=9222 --disable-gpu https://<yoursite>then open a new chrome and go to 127.0.0.1:9222 Commented Jul 15, 2020 at 5:15
  • I'm running Chromium in headless mode and the window size worked for me. Thanks Commented Sep 19, 2023 at 22:10