Re:Detecting Chrome headless, the game goes on
by bdcravens on Friday July 19, 2019 @02:48PM
(#20481413)
My understanding is that Selenium injects Javascript in the page, whether you're using a headless browser or not. The best bet would be to switch away from Selenium and write the code using something like Puppeteer.
If you do want to stick with Selenium, you're better studying the chromedriver source than Chromium itself.
If you do want to stick with Selenium, you're better studying the chromedriver source than Chromium itself.