All Snippets Add Snippet

Snippets tagged:

bash

Use the Playwright CLI to take a screenshot of a webpage

Uses playwright-cli to start a browser and take a screenshot of a website, all on the command-line.

bash
playwright-cli open https://tiimeliines.com
playwright-cli screenshot
playwright-cli close
Use up/down arrow keys or scroll to navigate