Inspecting a running page

Lesson 33 of 35 · Working with AI coding agents

Source code describes what an application is supposed to do. A running page provides evidence of what happened in a particular browser, with a particular account, viewport, and set of data. Both are useful, and neither alone proves that every user will have the same experience.

A browser automation tool can navigate, inspect page information, and interact with controls when those capabilities are available and permitted. Some browser tools connect through MCP; others are built into an agent or testing framework. Browser choice, profile isolation, and available inspection features vary.

Investigate an inconsistent filter

Imagine a public museum catalog in a local test environment. Selecting “photographs” changes the filter label, but the visible cards still include paintings. The question is whether the selection, the data, or the rendering is out of step—not whether a button was clicked.

Start with a small known test collection and note the selected label and card categories. Compare the page’s displayed selection with the relevant state or URL, if available. Then inspect the response for the catalog query and the code that maps its data into cards. For example, if the selected state says photographs and the response contains only photographs, but the cards still show the previous mixed collection, stale client-side rendering is one plausible explanation. It is not yet proof: cached data, another request, or misleading test records could also account for the observation.

After a focused change, repeat the filter change in both directions and compare the visible cards with the known test records. Report which states and environment were checked; a correct display in this run does not establish correctness for every account, browser, or dataset. Network traces, logs, screenshots, and page text can contain personal information, cookies, or tokens. Limit capture and sharing. A screenshot or a successful click is evidence for one observed state, not a replacement for automated tests, manual review, or accessibility testing.