ScreenshotNeo

Blog

How-to

Short answers to one job at a time.

How-to9 min read

How to Change Screen Size in Cypress

Use cy.viewport() to change Cypress’s application viewport, or configure defaults for a suite, project, or CI run. Learn how to test responsive layouts and distinguish app size from browser display size.

How-to9 min read

How to Save a Playwright Screenshot as a PDF

Use Playwright’s Chromium PDF API for selectable text, or turn a screenshot into an image-based PDF when you need visual fidelity. Includes runnable code, options, and fixes for common export problems.

How-to9 min read

How to Take Website Screenshots on Ubuntu

Capture a visible Ubuntu screen, a browser window, or an entire webpage. Learn the built-in shortcuts, Firefox and command-line options, and how to automate captures.

How-to10 min read

How to Write a Playwright Script

Write a runnable JavaScript Playwright script from installation through browser cleanup, with reliable locators, assertions, debugging tips, and a screenshot API option.