Playwright · Class
TestInfo
TestInfo gives a Playwright test access to its current test data and controls. Use it to inspect status, manage timeouts, create safe output paths, and attach files or buffers.
Last updated
- Since
- v1.10
Syntax
test(title, async (fixtures, testInfo) => { /* ... */ });
testInfo.attach(name, options);
testInfo.outputPath(...pathSegments);
testInfo.setTimeout(timeout);In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
test.infotest.attachmentstestInfo.attachmentstestInfo.outputDirtestInfo.outputPathtestInfo.statustestInfo.expectedStatustestInfo.retry