browser_launcher
1.2.0, released 3 months ago by tools.dart.dev
Provides a standardized way to launch web browsers for testing and tools.
What it does
Provides a standardized way to launch web browsers for testing and development tools. Currently supports launching Chrome with customizable flags, arguments, and debug ports.
AI-written summary of version 1.2.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to programmatically launch a web browser from your Dart tools or test environments
- You are building testing tools that require interacting with Chrome via debug ports
Skip it when
- You need to display web content inside your mobile or desktop application UI
- You need a solution that supports multiple non-Chrome web browsers out of the box
Strengths
- Allows passing arbitrary command-line arguments and custom user-data directories when starting Chrome
- Supports debug port attachment for browser inspection
Weaknesses
- Currently, Chrome is the only supported browser
- Limited documentation and examples provided in the README
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
requires Chrome installed on the host system
not documentedWorks with
Packages commonly used together with browser_launcher: ones it builds on, ones built on it, and its own family.
- loggingbrowser_launcher depends on itProvides configurable logging with levels and stream listeners for Dart apps.
- webkit_inspection_protocolbrowser_launcher depends on itA client for the Chrome DevTools Protocol to talk to debuggers.
- ddsBuilt on browser_launcherLibrary to spawn and communicate with the Dart Developer Service (DDS) via HTTP, WebSocket, or SSE.
- webdevBuilt on browser_launcherA command-line tool for developing and deploying web applications with Dart.