Navigator:webdriver 属性
navigator
接口的 webdriver
只读属性表示用户代理是否由自动化控制。
它定义了一种标准的方法,使得被控用户代理可以通知文档当前用户代理是由 WebDriver 控制的。例如,在自动化过程中触发替代代码路径。navigator.webdriver
属性在以下情况下为 true:
值
一个布尔值
规范
Specification |
---|
WebDriver # dfn-webdriver |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | server | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
webdriver |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.