Selenium CLI tool
Maintainers usually reply within 1 day
@AutomatedTester is already working on this.
Since Apr 9, 2026.
Assessment
This issue has not been assessed yet.
Description
Product Requirements Document: Sel-CLI (v1.2 - 2026 Edition)
Project Focus: Hybrid Rust/TypeScript CLI for Agentic & Industrial-Grade Browser Automation.
1. Competitive Analysis & Gap Summary
- Playwright (2026): Dominates with the Speedboard Timeline (visualizing slow test bottlenecks) and AI Test Agents (autonomous healer loops).
- Cypress (2026): Leading in Quality Intelligence (AI identifying untested code gaps) and simplified Studio recording.
- Selenium (2026): Moving to WebDriver BiDi, allowing two-way communication (streaming console/network events natively).
- Sel-CLI Advantage: Uses Rust (Selenium Manager core) for raw speed and TypeScript (Oclif) for the best AI-agent integration (MCP support), while supporting legacy and cross-browser grids that competitors ignore.
2. Updated Functional Requirements
Module 1: Infrastructure & Performance (Rust Core)
| ID | Feature | Description | Priority |
|---|---|---|---|
| FR-1.1 | Universal Binary | Single Rust binary that replaces the need for local Java or Python environments. | P0 |
| FR-1.2 | Install Browsers and Grid | Download browsers and selenium grid and get them ready to run. | P0 |
| FR-1.3 | Speedboard Logs | Native profiling of every Selenium command to generate a Timeline of "Time to Interactive" (Playwright parity). | P1 |
| FR-1.4 | BiDi Streamer | Direct pipe to browser console and network events using WebDriver BiDi for real-time debugging. | P1 |
Module 2: Agentic Automation (AI-First)
| ID | Feature | Description | Priority |
|---|---|---|---|
| FR-2.1 | MCP Server Support | Integration with Model Context Protocol (MCP) to allow Cursor/Claude to control browsers natively. | P1 |
| FR-2.2 | Healer Loop | If a test fails due to a changed locator, the CLI autonomously attempts to find a new locator and suggests a PR. | P1 |
| FR-2.3 | YAML Snapshots | Converts DOM to ultra-compact YAML. Crucial for reducing LLM token costs by 70% (Firecrawl/Agent-native). | P1 |
Module 3: Advanced Observability
| ID | Feature | Description | Priority |
|---|---|---|---|
| FR-3.1 | Trace-Travel UI | A visual dashboard where you can scroll through every step of a test and see the DOM state (Time-traveling). | P1 |
| FR-3.2 | Shadow-Piercer | Automatically detects and interacts with Shadow DOMs and Iframes without manual "context switching." | P1 |
3. Technical Architecture Update
The "Core-to-Shell" Model
- Kernel (Rust): Extends selenium-manager. Handles browser/driver installation, YAML snapshotting logic, and high-speed BiDi event processing.
- Shell (TypeScript/Oclif): Handles the command-line interface, user prompts, and formatting JSON/YAML for AI agents.
- Bridge: Use a high-performance IPC (Inter-Process Communication) or shared library bindings to ensure zero latency between the TS CLI and the Rust automation core.
4. New "Google Workspace CLI" Style Command Patterns
Inspired by the gws (Google Workspace CLI) patterns of 2026:
- Command: sel list sessions --params '{"status": "active"}'
- Command: sel run ./tests --agent --json (Outputs purely machine-readable context for AI).
- Command: sel install --skills (Installs a specific capability profile like "Mobile Safari" or "Legacy IE11").
5. Deployment & Distribution
- Direct Installer: curl -fsSL https://sel.cli.dev/install.sh | bash.
- NPM Wrapper: npm install -g @sel-cli/core.
- Note: The NPM package will detect the OS and download the specific Rust binary for that platform.
- Docker-Ready: Native binary supports Alpine/Debian-slim for lightweight CI/CD runners.
6. User Journey: The AI Agent Flow
- AI: "I need to automate the login for this site."
- CLI: Agent runs sel open https://example.com --agent.
- CLI: Returns a YAML Snapshot (e.g., button @e1: 'Login').
- AI: Commands sel click @e1.
- CLI: Executes via Rust-core, verifies success via BiDi event, and returns a confirmation.
- Dominant language
- Java
- Stars
- 34.6k
- Forks
- 8.7k
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 107
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from SeleniumHQ/selenium
-
C-py I-defect
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
SeleniumHQ/selenium#18438 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
SeleniumHQ/selenium#18323 · 1 comment ·
Maintainers usually reply within 1 day
-
B-build C-py I-enhancement
Difficulty 4/5 3-5 days Newbie friendliness 68/100
SeleniumHQ/selenium#18435 · 1 comment ·
Maintainers usually reply within 1 day
-
[🐛 Bug]: Bindings change the user's options when Selenium Manager supplies a browserPossibly taken @Liz-Lian claimed this 2 days ago. OpenC-dotnet C-java C-nodejs C-py C-rb I-defect
Difficulty 4/5 3-5 days Newbie friendliness 45/100
SeleniumHQ/selenium#18428 ·
Maintainers usually reply within 1 day
-
[🐛 Bug]: [rust] Selenium Manager can return a browser from the cache before it finishes copyingPossibly taken @Liz-Lian claimed this 2 days ago. OpenC-rust I-defect
Difficulty 3/5 1-2 days Newbie friendliness 65/100
SeleniumHQ/selenium#18427 ·
Maintainers usually reply within 1 day
All issues in SeleniumHQ/selenium
Similar issues
-
area-integrations
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
? - Needs Triage bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
NVIDIA/cudf-spark-jni#5598 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
oracle/graalvm-reachability-metadata#12264 ·
Maintainers usually reply within 1 day
-
[source-facebook-pages] post stream never returns attachments.media_typePossibly taken @v-k-data claimed this today. Openarea/connectors needs-triage type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
[BUG] AppSync: GetIntrospectionSchema wraps the schema in JSON instead of returning the raw SDL bodyOpen
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
floci-io/floci#10107 · 1 comment ·
Maintainers usually reply within 1 day