Screenshots & PDF
Capture browser output through your automation client.
These snippets assume a connected Playwright page. Returned files are saved on the machine running your application.
await page.screenshot({ path: "page.png", fullPage: true });
await page.pdf({ path: "page.pdf", format: "A4", printBackground: true });These are Playwright options, not TabSail session-creation parameters.
| Option | Description |
|---|---|
path | Output on your application's filesystem |
fullPage / full_page | Capture the scrollable page |
format | PDF paper format |
printBackground / print_background | Include PDF background graphics |
Wait for the content you need before capture. See the complete capture example.