-
Notifications
You must be signed in to change notification settings - Fork 22.4k
/
index.md
38 lines (27 loc) · 940 Bytes
/
index.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
title: "Navigator: webdriver property"
short-title: webdriver
slug: Web/API/Navigator/webdriver
page-type: web-api-instance-property
browser-compat: api.Navigator.webdriver
---
{{APIRef("WebDriver")}}
The **`webdriver`** read-only property
of the {{domxref("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](/en-US/docs/Web/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 the `--headless` flag or the
`--remote-debugging-port` is used.
- Firefox
- : The `marionette.enabled` preference or `--marionette` flag is
passed.
## Value
A {{JSxRef("Boolean")}}
## Specifications
{{Specifications}}
## Browser compatibility
{{Compat}}