web api instance property
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-automationor--headlessflag is used, or the--remote-debugging-portflag specifying port 0 is used.
- : The
- Firefox
- : The
marionette.enabledpreference or--marionetteflag is passed.
- : The
Value
A Boolean
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.