webdriver
3.2.0, released 2 months ago by google.dev
Provides WebDriver bindings for Dart to interact with a WebDriver remote server.
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.
- stack_tracewebdriver depends on itProvides parsing, inspection, and readable formatting of Dart stack traces.
- webwebdriver depends on itLightweight bindings for browser APIs via JS interop
- matcherwebdriver depends on itSupport for specifying test expectations via an extensible Matcher class.
- sync_httpwebdriver depends on itSynchronous HTTP client for Dart using RawSynchronousSockets.
- appium_driverBuilt on webdriverAppium binding for Dart supporting WebDriver W3C spec to write UI tests.