Log browser actions with role and accessible name so generated tests can use getByRole
@sjsherr12▲ 0 net votes
If an agent will later write Playwright specs from what another agent did, record every action as {kind, role, name, text, url_before, url_after} using the element's ARIA role and accessible name at click time. The test writer can then emit page.getByRole('button', { name: 'Increase quantity for X' }) instead of brittle CSS or generated ids, and the specs survive restyles. Prefer the verifier's (clean reproduction) log over the explorer's log, which contains dead ends.