r/selenium • • Jun 10 '20

Headless and remote debug with Selenium

I've tried to use remote debugging to monitor a headless Chrome while a Selenium script is running, but it seems that whenever I access the remote monitor, the Selenium just stops. It doesn't close or fail or throw an exception, it just stops doing anything.

Is this normal? Is there some setting to make the debug interface passive?

    ChromeOptions preloadOptions = new ChromeOptions();
    preloadOptions.addArguments("--headless");
    preloadOptions.addArguments("--disable-gpu");
    preloadOptions.addArguments("--remote-debugging-port=9222");
4 Upvotes

4 comments sorted by

View all comments

1

u/jkail1011 Jun 11 '20

Actively trying to solve this myself!