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

How Cursor + BrowserAct Handles Dynamic Pages Without Brittle Selectors

Описание и применение

Cursor совместно с BrowserAct позволяет тестировать динамические веб‑страницы без жестко заданных селекторов, автоматически обновляя состояние страницы после каждого действия.

Задача

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

Результат

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.

Рабочий процесс

  • 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

Доказательства

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.

Источник

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

Источник

  • Дата записи: 2026-09-02T14:27:46.292Z