Navigator: webdriver property

The webdriver read-only property of the navigator interface indicates whether the user agent is controlled by automation.

It defines a standard way for co-operating user agents to inform the document that it is controlled by WebDriver, for example, so that alternate code paths can be triggered during automation.

The navigator.webdriver property is true when in:

Chrome

The --enable-automation or --headless flag is used, or the --remote-debugging-port flag specifying port 0 is used.

Firefox

The marionette.enabled preference or --marionette flag is passed.

Value

Specifications

Specification
WebDriver
# dfn-webdriver

Browser compatibility

Report problems with this compatibility data on GitHub
desktopmobileserver
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
Deno
Node.js
webdriver

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support