Firefox Tomorrow

landing page

WebDriver

View on MDN ↗

WebDriver is a browser automation interface that allows external programs to remotely inspect and control a browser. It is a platform- and language-neutral wire protocol, supporting both command-based automation and real-time, event-driven communication.

WebDriver provides tooling for cross-browser testing, helping teams deliver consistent user experiences across many browsers and platforms. It is intended to allow web authors to write tests to automate a browser from a separate controlling process.

WebDriver is available in two variants: WebDriver classic that uses HTTP, and WebDriver BiDi that uses WebSocket and enables bidirectional, event-driven communication.

Reference

Browse the complete WebDriver reference documentation.

  • WebDriver BiDi

    • : Reference for WebDriver BiDi modules, commands, and events.
  • WebDriver classic

    • : Reference for WebDriver classic commands and timeouts.
  • Capabilities

    • : Reference for WebDriver capabilities.
  • Errors

    • : Reference for WebDriver errors.

Specifications

See also