Software Testing / Learning brief

Tom meets the guard and the glass box

What this means in plain language

Tom's Daily List tests get stuck at a card form in a frame, a Delete box and a Help tab. A house story shows how Playwright reaches into frames, answers dialogs and catches new tabs for him.

Understand the full idea, step by step

A big house has a room with a glass box inside it. You cannot reach what is in the box by walking round the room. You must open the box first. A guard may also stop you and ask a question before you go on.

Tom's tests keep stopping at those places. The card form is a glass box. The Delete box is a guard. The Help link is a door to a second room.

Evidence & review

REVIEWED 2026-10-18

The date on this lesson is when it went up on Payments Signal, not when its material was written — most of these were brought across from an earlier catalogue in a single run, which is why so many of them share a date. What the lesson says about the world is dated by the review above and by the sources below it.

Playwright frames, dialogs and popups as taught in this academy, on an invented app. The tool details come from search excerpts of its documentation.

What this brief simplifies: Fiction labelled SYNTHETIC / TRAINING ONLY. The house is a teaching picture. The site address and the test card number are invented.

Sources for this brief — 5 sources
  1. Market practice

    Locator (Playwright documentation) ↗ — Microsoft (Playwright) · frameLocator creates a locator that enters an iframe so elements inside it can be found; inner locators stay relative to the frame (search excerpt, page not opened)

    Reference for locator.setInputFiles, which sets the files of a file input from paths or in-memory buffers, resolves relative paths from the working directory and clears the selection with an empty array; also frameLocator for content inside an iframe. Vendor documentation for one tool. Practitioner or vendor guidance, not a standard. · Checked 2026-11-06

    Primary source opened and operative text inspected on 6 November 2026. Scope: selectOption, setChecked, setInputFiles and tap. Current live Playwright documentation reflects 1.65 where stated; explicit older examples retain their version. Source inspection is not an execution or compatibility-test claim. See the completed v45 Playwright analysis for source discrepancies and exact reading boundaries.

  2. Market practice

    Dialogs (Playwright documentation) ↗ — Microsoft (Playwright) · alert, confirm and prompt dialogs are dismissed automatically by default; page.on dialog with accept and dismiss; a listener that does not handle the dialog leaves the page waiting; accept can take prompt text (search excerpt, page not opened)

    Says alert, confirm and prompt dialogs are dismissed automatically by default, shows page.on dialog with accept and dismiss, and warns that a listener which does not handle the dialog leaves the page waiting. Vendor documentation for one tool. Practitioner or vendor guidance, not a standard. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  3. Market practice

    Pages (Playwright documentation) ↗ — Microsoft (Playwright) · Start waiting for the popup event before the click that opens it, then wait for the popup to load; the context page event covers new tabs (search excerpt, page not opened)

    Describes handling new pages and popups: start waiting for the popup event before the click that opens it, then wait for the popup to load, and the context page event for new tabs. Vendor documentation for one tool. Practitioner or vendor guidance, not a standard. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  4. Market practice

    The iframe element (Mozilla developer docs, HTML reference) ↗ — Mozilla (developer documentation) · An iframe element embeds another HTML page inside the current page (search excerpt, page not opened)

    Per the search excerpt, an iframe embeds another document inside the current page as a nested browsing context. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  5. Simplified educational illustration

    Payments Signal editorial teaching models — Payments Signal

    This site's own simplified teaching models. · Checked 2026-07-12

    Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.

Learn this properly

START HEREFrames, tabs, dialogs and popupsReach inside frames, answer dialog boxes and follow a link into a new tab, with the Playwright calls that do each one and the mistakes to avoid.Opens at L0 Explain simply · about 18 min

Related briefs

Tom opens the brick box

Tom practises questions on the design of test automation. A box of building bricks helps him place code in framework layers, pick an approach and choose a design pattern.

READ BRIEF