This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
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:
--enable-automation or the --headless flag is used.marionette.enabled preference or --marionette flag is passed.var isAutomated = navigator.webdriver
A Boolean
| Specification | Status | Comment |
|---|---|---|
| WebDriver The definition of 'webdriver' in that specification. | Recommendation | Initial definition. |
| Desktop | ||||||
|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
| Basic support | 63 | ? | ? | ? | 50 | ? |
| Mobile | |||||||
|---|---|---|---|---|---|---|---|
| Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
| Basic support | ? | 63 | ? | ? | 50 | ? | ? |
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/navigator/webdriver