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 link


Specification currently under development in a Working Group

Status in Chromium

Internals>Headless


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 signal
  • No signals

Owner

Comments

https://groups.google.com/a/chromium.org/g/blink-dev/c/6GysDZCWwB8/m/rXbGoRohBgAJ https://github.com/w3c/webdriver/pull/1219

Search tags

headless,

Last updated on 2021-02-09