Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2018年5月.
webdriver は navigator インターフェイスの読み取り専用プロパティで、ユーザーエージェントが自動制御されているかどうかを示します。
これは協調動作をするユーザーエージェントが WebDriver によって制御されていることを文書に伝えるための標準の方法を定めており、例えば自動制御の間は異なるコードを実行したりすることができます。
次のような場合に navigator.webdriver プロパティが true になります。
Chrome--enable-automation または --headless フラグが使用されているか、ポート 0 を指定する --remote-debugging-port フラグが使用されているとき。
Firefox設定の marionette.enabled または --marionette フラグが渡されたとき。
A Boolean
| WebDriver # dfn-webdriver |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025年6月10日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.