Software Testing / Learning brief
Tom opens the parcel instead of reading the label
In simple terms / 01
What this means in plain language
Tom's Daily List tests attach a receipt and export the task list. A post counter story shows how Playwright sends a file, catches a download, and why the test must open the file to check it.
Complete lesson / 02
Understand the full idea, step by step
At a post counter you hand over a parcel and get a slip. Later you collect another one. You do not trust the label alone. You open the box and check what is inside.
Tom's tests for Daily List must do the same with files. A task can hold an attached file, and the task list can be exported.
Evidence & review / 03
Evidence & review
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 uploads and downloads 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 post counter is a teaching picture. The site address and the files are invented.
Sources for this brief — 5 sources
- Market practice
Locator (Playwright documentation) ↗ — Microsoft (Playwright) · locator.setInputFiles sets the files of a file input from paths or in-memory buffers; relative paths resolve from the working directory; an empty array clears the selection (search excerpt, page not opened)
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.
- Market practice
Actions (Playwright documentation) ↗ — Microsoft (Playwright) · setInputFiles takes a path, an array of paths, an empty array or a buffer; the file chooser route suits inputs created on the fly (search excerpt, page not opened)
Primary source opened and operative text inspected on 6 November 2026. Scope: Complete extracted primary article; examples inspected, not executed. 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.
- Market practice
FileChooser (Playwright documentation) ↗ — Microsoft (Playwright) · Listen for the filechooser event before the click that opens the chooser, then call fileChooser.setFiles (search excerpt, page not opened)
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.
- Market practice
Downloads (Playwright documentation) ↗ — Microsoft (Playwright) · Wait for the download event before the click; suggestedFilename and saveAs on the download; saveAs waits for the download to finish; downloaded files are deleted when the browser context closes (search excerpt, page not opened)
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.
- Simplified educational illustration
Payments Signal editorial teaching models — Payments Signal
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.