Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

How Cursor + BrowserAct Handles Dynamic Pages Without Brittle Selectors

Description and use

Cursor and BrowserAct enable testing of dynamic web pages without brittle selectors by continuously inspecting the page state before each action.

Problem

Browser automation tests fail when dynamic web pages change selectors after re-renders, causing brittle hard‑coded selectors to break.

Outcome

The workflow successfully searched for a project on EmbedCatalog, opened its details page, and verified content without using any hard‑coded selectors, achieving a PASS result.

Workflow

  • Install BrowserAct CLI
  • Open target site with Cursor and BrowserAct
  • Generate a prompt instructing Cursor to use BrowserAct for state inspection before each action
  • Execute BrowserAct commands: open, state, click, wait stable, fill, get markdown
  • After each action, BrowserAct refreshes the page state
  • Validate final page content to confirm success

Evidence

Cursor, with the help of BrowserAct, automatically found the required input, searched for the page, and scanned it. We simply generated a simple prompt, without looking at the DOM at all.

Source

The test completed successfully. After every interaction, Cursor refreshed the current page state before continuing, allowing it to adapt to the updated interface.

Source

  • Record date: 2026-09-02T14:27:46.292Z