Browser automation without writing Playwright scripts

Not every browser job deserves a test suite. If you need to inspect one dashboard, follow a link, or prepare a change for a person to review, an agent can operate the current page through Grip (gripui). Grip returns numbered actions from the live browser via gripui hud. The agent chooses a ref, runs gripui do <n>, and reads the HUD again.

There is no CSS selector to invent for the example below and no Playwright script to maintain. That does not make Playwright obsolete: Playwright Test is built for repeatable application verification with isolated page and context fixtures, web-first auto-retrying assertions (expect), Trace Viewer debugging across Chromium, Firefox and WebKit, and CI runs (npx playwright test). Use Grip when the task is exploratory or when a person and an agent share browser work. Both tools still depend on the page, the account's permissions and the site's rules.

Grip requires an active paid licence for browser actions and an AI agent you supply; there is no free tier, and browser commands stop when a licence ends or becomes invalid. Solo Dev ($79/year) covers one developer for local personal and commercial work on up to 2 machines (excluding CI runners and shared machines). Pro Runner ($499/year) covers headless, CI, multi-machine and production workflows on up to 3 activations, and Platform (from $10k/year) covers redistribution, bundling or external user access. Solo Dev and Pro Runner renew annually with a 2-day refund window, and Grip renews its signed licence lease with gripui.com every 5 hours; see the pricing page for details.

The shortest useful loop

On a macOS test host with Grip 6.5.1, these commands opened the public Example Domain page in a temporary headless profile and inspected it. Install and activate Grip first using its download instructions. Choose a different unused profile name if this one already exists.

gripui @grip-review01-20261204 set temporary
gripui @grip-review01-20261204 set headless
gripui @grip-review01-20261204 go https://example.com
gripui @grip-review01-20261204 hud

On this run, go completed synchronously in 2.05 seconds wall time (ok: navigated tab=1 url=https://example.com). One-shot commands that still run past 2 seconds return a background handle instead, which you check with gripui handle (or block with GRIPUI_SYNC=1). The first hud call took 0.41 seconds wall time after navigation completed and showed:

[1] click link:"Learn more"

This output is a snapshot of one tab and frame, not a permanent API for the website. Your action number may differ. The do command acts on the observed ref rather than requiring an HTML ID or CSS selector. Read the label and context before acting, especially when a page renders two buttons with the same text.

The 0.41-second HUD timing and 2.05-second navigation timing are single observations on one machine, not general benchmarks. A slower network, cold browser launch or complex DOM will produce different timings.

One action is not a completed task

For this observed page, ref 1 was the link. The exact action and subsequent inspection were:

gripui @grip-review01-20261204 do 1
gripui @grip-review01-20261204 hud

The do 1 call returned ok: clicked tab=1 Learn more. The next hud showed the IANA Example Domains page (https://www.iana.org/help/example-domains), a new set of links, and a changed-sheet notice (s1 to s2). Because the available actions changed, that hud call exited nonzero (1) while still displaying the valid new refs; a second hud on the unchanged page exited 0. That nonzero exit prevents stale &&-chained commands from acting on an outdated sheet.

A ref is tied to an element's identity in the current tab and frame. Surviving elements can keep their ref numbers across minor page updates, whereas detached elements or frame switches require a fresh observation. Never hard-code the example's 1 into an agent prompt as a permanent selector. Read the latest HUD output, verify the label and use that number in the active session.

This feedback loop separates exploratory automation from a blind macro. The agent must verify whether the visible page state matches the goal. A click receipt says the click was sent; it does not prove that a server saved a form, created a record or finished a download. Check the resulting confirmation or record before retrying a write.

What happens on a form?

The HUD exposes visible fields, selects and buttons as numbered actions, and gripui form lists fields, current values and validation errors. An agent can inspect a form, pass input with gripui type <ref> "text" (which clears first unless --no-clear is passed), and inspect errors with gripui doctor <ref>. This public-page run only clicked a link; it did not test typing, form submission, file uploads or application validation. Consult the form tutorial for those operations and test them on an authorized page before relying on them.

For ambiguous labels, surrounding row or card context= text helps identify the intended action. It is still evidence to interpret, not a guarantee that the agent picked the right record. Give the agent a specific identifier, constrain what it may change, and stop for review when the context is unclear. Dynamic pages may open a modal layer (gripui hud --layer active) or place controls inside an iframe (gripui frame list); inspect the current context rather than guessing from a prior page.

A clear task instruction states the outcome, the profile, and the stopping boundary: inspect a record, prepare a draft, and pause before submitting. Claude Code (Bash deny/ask/allow rules), Codex (sandboxing and approval policies) and Cursor (terminal Run Modes, allowlists and permissions.json) govern whether the agent can run shell commands. Grip does not supply the model or configure those agent permissions for you.

Where Playwright is the better tool

Choose Playwright when you own an application and need a deterministic regression suite on every change. Playwright Test provides isolated page and context fixtures, web-first assertions that retry until conditions hold, Trace Viewer snapshots and network logs, and multi-browser CI execution. An agent deciding on each visible control one step at a time is not a substitute for repeatable test assertions. A short exploratory Grip run can help inspect a flow, while verified application behavior belongs in a test suite.

Grip is also not a way around site restrictions. A page can require authentication, reject automated access, change layout or present a challenge. For a login or CAPTCHA, the authorized person can take control with gripui human-drives and return it with gripui agent-drives. A restart from headless to visible restores open tabs without guaranteeing unsaved form fields, so authenticate before starting a long form and keep credentials out of the agent chat.

For a local logged-in task, bind a dedicated persistent profile (gripui attach <name>) and sign in only to the accounts needed. A profile isolates browser storage, not the wider filesystem or shell available to the agent. Temporary profiles delete their browsing data on quit and are meant for disposable tests.

Clean up

gripui quit --profile grip-review01-20261204

The quit receipt confirmed that the browser daemon stopped and the temporary profile was deleted. If a page fails to load or an intended ref is missing, inspect gripui status and gripui hud rather than guessing a control. Keep a repeatable Playwright suite wherever deterministic regression coverage is the requirement.

Next: to drive a remote browser you own, use gripui connect browserbox '<login-link>' --engine with your BrowserBox login link; this remote connection was not exercised in the test above. Evaluate BrowserBox or see Grip pricing.

Your agent. Your browser.

Put it to work.

Get started

macOS · Linux · Windows
Paid licence required. Bring your own AI agent.

Demo recording

Player unavailable? Watch on YouTube ↗