Vibium: A CLI Browser Automation Guide

DevNomad Novice 8h ago 106 views 12 likes 2 min read

Stop wasting time hunting for CSS selectors and digging through the DOM just to automate a simple login flow. If you've used Playwright or Selenium, you know the drill: spend twenty minutes inspecting elements only for the build to break because a class name changed. Vibium tries to solve this by treating browser automation as a series of step-based commands rather than a coding project.

The core shift here is the "discovery" phase. Instead of hardcoding #username-field-v2, you find an element and Vibium gives you a temporary reference like @e1. You then act on that reference. It's a much more interactive, agentic way to handle the browser.

Getting Started from Scratch

Setting this up is straightforward since it handles the browser binaries for you.

Vibium: A CLI Browser Automation Guide

1. Install the CLI via npm:

npm install -g vibium

2. Test the connection:

vibium go https://example.com
(This will automatically pull a Chrome for Testing build if you don't have one).

Practical Tutorial: Automating a Login

I tested this on the OrangeHRM demo site to see if it actually removes the friction of selector management. Here is the raw workflow:

vibium record start

vibium go "https://opensource-demo.orangehrmlive.com"

# Scan the page for interactive elements
vibium map

# Use the assigned references (@e1, @e2, etc.) to interact
vibium fill "@e1" "Admin"
vibium fill "@e2" "admin123"
vibium click "@e3"

vibium record stop

By using vibium map, the tool identifies elements using semantic signals—labels, placeholders, and the accessibility tree—rather than just brittle XPaths.

Vibium vs. Playwright vs. Selenium

I'm naturally skeptical of "simpler" tools because they usually sacrifice power for ease of use. Here is how they stack up:

  • Setup Overhead: Vibium is the fastest (CLI based) vs. Playwright/Selenium (Framework based).
  • Element Targeting: Vibium uses semantic references (@e1) vs. Playwright/Selenium using CSS/XPath.
  • Workflow: Vibium is designed for agentic/CLI usage and MCP servers vs. the others being designed for structured test suites.
  • Stability: Playwright is the gold standard for enterprise CI/CD; Vibium is better for rapid prototyping and LLM-driven AI workflows.
Vibium: A CLI Browser Automation Guide

If you're building a massive regression suite, stick to Playwright. But if you're building an LLM agent or need a quick hands-on guide to scrape/automate a site without writing a full project scaffold, this CLI approach is significantly faster.
AIAI ProgrammingAI Codingwebdevtesting

All Replies (3)

D
DrewCrafter Novice 8h ago
Love the focus on AI-friendly automation over raw selectors. But how stable are the element references in dynamic UIs? Modern SPAs re-render components constantly after state changes. If Vibium can reliably recover or re-identify elements without manual help, it'd be a huge win for long-running AI agents.
0 Reply
D
DeepSurfer Novice 8h ago
I used this for some scraping last week and it saved me a ton of time.
0 Reply
S
Sam64 Advanced 8h ago
Does it handle shadow DOMs? Always a pain with standard selectors.
0 Reply

Write a Reply

Markdown supported