Skip to content
pubscout

webdriver

3.2.0, released 2 months ago by google.dev

Provides WebDriver bindings for Dart to interact with a WebDriver remote server.

$ flutter pub add webdriver
Source repository

What it does

Provides WebDriver bindings for Dart supporting both the WebDriver JSON interface and W3C spec. It allows you to control web browsers via a WebDriver remote server using asynchronous or synchronous APIs.

AI-written summary of version 3.2.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to write browser automation or integration tests in Dart.
  • You want to communicate with a WebDriver remote server like chromedriver or geckodriver.

Skip it when

  • You are building standard cross-platform UI applications without browser testing needs.
  • You do not have a WebDriver remote server available to run against.

Strengths

  • Supports both JSON wire spec and W3C spec.
  • Offers both asynchronous and synchronous APIs.

Weaknesses

  • Requires an external WebDriver remote server (such as chromedriver or geckodriver) to run.
  • Running tests can be complex and slow.

Setup

Kind
Pure Dart
Effort
Medium
Code generation
No
Direct dependencies
5

Requires downloading and launching an external WebDriver binary like chromedriver or geckodriver.

import 'package:webdriver/io.dart';

WebDriver driver = createDriver(...);

Works with

Packages commonly used together with webdriver: ones it builds on, ones built on it, and its own family.