The Webdriver specification defines a `navigator.webdriver` property to indicate if UA is controlled by automation. This property is defined and returns `true` when running Chrome with the `--headless` flag.
Specification
Specification currently under development in a Working Group
Status in Chromium
Enabled by default
(tracking bug)
Consensus & Standardization
After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.
- No signal
- No signal
- No signals
Owner
Search tags
headless,Last updated on 2021-10-25
Comments
https://groups.google.com/a/chromium.org/g/blink-dev/c/6GysDZCWwB8/m/rXbGoRohBgAJ https://github.com/w3c/webdriver/pull/1219