October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk6 min

How to Test a Web App’s Loading, Empty, and Error States with Screenshots

A dependable state screenshot test controls the response, asserts the intended UI has rendered, then captures and reviews the result.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Make each state happen on purpose, verify that the intended UI has rendered, and only then take or compare a screenshot. Control the app’s data or network response so the test is repeatable; use semantic and accessibility assertions alongside screenshots, because pixels alone cannot show whether a control works or a message is meaningfully exposed.

Build a repeatable test around the state

A screenshot is useful only if the app is in the state the test intends to check. For loading, empty, and error cases, control the outcome that drives the UI, assert the visible result, and capture after that assertion succeeds. Cypress recommends fixtures and network stubbing to keep rendered data consistent, while Playwright documents ways to monitor and modify browser traffic, including network mocking (Cypress visual testing; Playwright network documentation).

As an Amazon Associate I earn from qualifying purchases.

  1. Choose the request or data source that produces the UI state, such as a list endpoint or form submission.
  2. Control its outcome with a fixed fixture, intercepted response, deliberate delay, or failure appropriate to the case.
  3. Assert the user-visible state by checking its message, progress indicator, result, or recovery control.
  4. Capture the relevant page or element only after the assertion passes.
  5. Compare and review the image against an approved baseline if the goal is visual regression testing.

A screenshot taken while a request is pending unintentionally, or before a render has settled, may record a transient frame. Cypress specifically advises confirming the page has updated before snapshotting. Prefer an assertion tied to the intended UI over an arbitrary sleep (Cypress visual-testing guidance).

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Test the loading state

Hold the relevant request open so the app remains in its pending state. Check that the correct progress indicator or loading message is visible, then capture if that state is an intentional design checkpoint. Release the request afterward and assert that the expected content appears; otherwise the test may prove only that a spinner was shown, not that the page recovers to its completed state.

#1 Best Overall
Sale
Logitech Brio 101 Full HD 1080p Webcam for Streaming and Meetings - Black
  • Compatible with Nintendo Switch 2’s new GameChat mode
  • Auto-Light Balance: RightLight boosts brightness by up to 50%, reducing shadows so you look your best—compared to previous-generation Logitech webcams (1)
  • Privacy with a Slide: The integrated webcam cover makes it easy to get total, reliable privacy when you're not on a video call
  • Built-In Mic: The built-in microphone lets others hear you clearly during video calls
  • Easy Plug-And-Play: The Brio 101 works with most video calling platforms, including Microsoft Teams, Zoom and Google Meet—no hassle; it just works

Keep the delay under test control rather than relying on real network speed. If loading is too brief to be a meaningful user-facing state, decide whether it merits a screenshot checkpoint at all. The essential condition is that the test deliberately reaches and observes the pending UI.

Test the empty state

Return an empty result from the relevant endpoint or data source. Assert the actual empty-state copy and any expected next action, such as a link or button, before capturing. Do not treat an empty container or blank page as a correct empty state by default: specify what the product is meant to communicate and what users should be able to do next. Fixture-based data and network stubbing make the result consistent between runs (Cypress visual-testing guidance).

Rank #2
Sale
Logitech C270 720p Webcam Plug-and-Play Wide Screen Video Calling - Black
  • Compatible with Nintendo Switch 2’s new GameChat mode
  • Crisp HD 720p/30 fps video calls with diagonal 55° field of view and auto light correction. Compatible with popular platforms including Skype and Zoom.
  • The built-in noise-reducing mic makes sure your voice comes across clearly up to 1.5 meters away, even if you’re in busy surroundings.
  • C270’s RightLight 2 feature adjusts to lighting conditions, producing brighter, contrasted images to help you look good in all your conference calls.
  • The adjustable universal clip lets you attach the camera securely to your screen or laptop, or fold the clip and set the webcam on a shelf. You’re always ready for your next video call.

Test the error state

Cause a controlled failure response or failed request, then assert the visible error message and the recovery path before taking the screenshot. Test meaningful in-flow failures as well as page-level failures—for example, form errors that appear after submission. Cypress’s accessibility guidance identifies error states in forms as an example of a state that testing only the initial load or final state can miss (Cypress accessibility-testing guidance).

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Where recovery is part of the UI, verify it separately: the message being visible does not prove that retry, correction, or navigation works. Use an interaction or application-specific assertion for that behavior.

Rank #3
Sale
NexiGo N60 1080P Webcam with Microphone, Software Control & Privacy Cover, USB HD Computer Web Camera, Plug and Play, for Zoom/Skype/Teams, Conferencing and Video Calling
  • 【Full HD 1080P Webcam】Powered by a 1080p FHD two-MP CMOS, the NexiGo N60 Webcam produces exceptionally sharp and clear videos at resolutions up to 1920 x 1080 with 30fps. The 3.6mm glass lens provides a crisp image at fixed distances and is optimized between 19.6 inches to 13 feet, making it ideal for almost any indoor use.
  • 【Wide Compatibility】Works with USB 2.0/3.0, no additional drivers required. Ready to use in approximately one minute or less on any compatible device. Compatible with Mac OS X 10.7 and higher / Windows 7, 8, 10 & 11 / Android 4.0 or higher / Linux 2.6.24 / Chrome OS 29.0.1547 / Ubuntu Version 10.04 or above. Not compatible with XBOX/PS4/PS5.
  • 【Built-in Noise-Cancelling Microphone】The built-in noise-canceling microphone reduces ambient noise to enhance the sound quality of your video. Great for Zoom / Facetime / Video Calling / OBS / Twitch / Facebook / YouTube / Conferencing / Gaming / Streaming / Recording / Online School.
  • 【USB Webcam with Privacy Protection Cover】The privacy cover blocks the lens when the webcam is not in use. It's perfect to help provide security and peace of mind to anyone, from individuals to large companies. 【Note:】Please contact our support for firmware update if you have noticed any audio delays.
  • 【Wide Compatibility】Works with USB 2.0/3.0, no additional drivers required. Ready to use in approximately one minute or less on any compatible device. Compatible with Mac OS X 10.7 and higher / Windows 7, 10 & 11, Pro / Android 4.0 or higher / Linux 2.6.24 / Chrome OS 29.0.1547 / Ubuntu Version 10.04 or above. Not compatible with XBOX/PS4/PS5.

Choose what to capture and compare

Capture a component or the whole page

Use an element-level screenshot when the component and its state are the subject; this reduces noise from unrelated page changes. Choose a full-page capture when page-level layout is what you intend to verify. Keep checkpoints deliberate: each one creates an image that may need review when it changes.

Capture is not the same as comparison

A visual-regression workflow captures an image, compares it with an approved baseline, and reviews the differences. Cypress’s built-in cy.screenshot() captures images but does not compare them; comparison requires a plugin or integration. Playwright documents screenshot assertions such as toHaveScreenshot() for pages or elements (Cypress visual-testing guidance; Playwright assertions).

Rank #4
Sale
EMEET C960 1080P Webcam with Microphone, 2 Mics, 90° FOV, Computer Camera
  • 1080P Webcam with Cover for Video Calls - EMEET computer webcam provides design and Optimization for professional video streaming. Realistic 1920 x 1080p video, 5-layer anti-glare lens, providing smooth video. C960 computer camera delivers 1920x1080 video with fixed focus (11.8–118.1 inches), so as to provide a clearer image. C960 USB webcam has a cover and can be removed automatically to meet your needs for privacy. For optimal image performance, use the webcam in a well-lit environment.
  • Built-in 2 Omnidirectional Mics - EMEET webcam with microphone for desktop features 2 built-in omnidirectional microphones, picking up your voice to create clear audio for communication. When installing the webcam, select EMEET C960 as the default microphone input device in your computer and video applications and select C960 as the default device in Zoom/Teams and ensure microphone permissions are enabled for proper use. Please note that C960 does not include built-in speakers.
  • Automatic Light Adjustment - Automatic exposure adjustment is applied in EMEET HD webcam 1080p so that the streaming webcam can deliver stable image performance. EMEET C960 camera for computer also features color adjustment and exposure optimization to help you look your best. For optimal video quality, it is recommended to use the webcam in normal or well-lit environments and select suitable video settings in your application. Proper lighting helps achieve a clearer and more balanced image.
  • Plug-and-Play & Upgraded USB Connectivity - New C960 webcam features both USB Type-A & A-to-C adapter connections for wider compatibility. For stable performance, connect the webcam directly to the computer's main USB port and ensure the device is recognized correctly. If a hub or docking station is used, please ensure it provides sufficient power and stable data transmission, as limited ports may affect performance. 90° wide-angle lens captures more participants without frequent adjustments.
  • High Compatibility & Multi Application - C960 webcam for laptop is compatible with Windows 10/11, macOS 10.14+, and Android TV 7.0+. Not supported: Windows Hello, TVs, tablets, or game consoles. It works with Zoom, Teams, Facetime, Google Meet, YouTube and more. Please select C960 webcam as the default camera and microphone device in your application and ensure camera/microphone permissions are enabled, especially on macOS. (Tips: Incompatible with Windows Hello)

When a diff appears, inspect it rather than automatically accepting a new baseline. A changed image may represent an intentional design update or a regression; approve the replacement only when the visible change is expected.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Reduce noisy screenshot diffs

Keep the conditions that affect rendering consistent. Cypress identifies environment, viewport, time, test data, and animation as sources of visual-test instability (Cypress visual-testing guidance).

Best Value
Logitech C920x HD Pro PC Webcam Full 1080p/30fps Video - Black
  • Compatible with Nintendo Switch 2’s new GameChat mode
  • HD lighting adjustment and autofocus: The Logitech webcam automatically fine-tunes the lighting, producing bright, razor-sharp images even in low-light settings. This makes it a great webcam for streaming and an ideal web camera for laptop use
  • Advanced capture software: Easily create and share video content with this Logitech camera that is suitable for use as a desktop computer camera or a monitor webcam
  • Stereo audio with dual mics: Capture natural sound during calls and recorded videos with this 1080p webcam, great as a video conference camera or a computer webcam
  • Full HD 1080p video calling and recording at 30 fps. You'll make a strong impression with this PC webcam that features crisp, clearly detailed, and vibrantly colored video
  • Use a fixed viewport and a consistent browser and operating-system environment.
  • Control dates and dynamic test data so text and layout do not change between runs.
  • Disable animations or wait for them to finish before capture.
  • Use controlled network responses rather than depending on live data or variable latency.
  • Wait for the intended visible state, not merely for navigation or a request to finish.

Pair screenshots with behavioral and accessibility checks

A visual diff can reveal visible changes, but it cannot establish that a button works, that text is exposed meaningfully to assistive technology, or that a user can complete the flow. Add application-specific checks for accessible names, recovery actions, keyboard interaction, and the meaning of status and error messages. Playwright supports ARIA snapshot assertions for checking accessible structure against an expected template (Playwright snapshot testing).

Automated accessibility scans also cannot prove complete accessibility or usability; Cypress describes accessibility testing as a companion to visual testing and cautions against treating automated checks as exhaustive (Cypress accessibility-testing guidance).

Troubleshoot common failures

  • The image sometimes shows loading and sometimes content: the capture is racing the render. Control the response and wait for an assertion on the intended visible state before capture.
  • An “empty” screenshot is just blank: assert the product’s expected empty copy and action; confirm the stub actually returned the empty result the app handles.
  • An error test shows the normal screen: check that the test intercepts the correct request and that its failure outcome reaches the UI. Assert the error message before capturing.
  • Diffs change between runs without a code change: stabilize viewport, browser environment, time, data, and animation behavior; these are documented sources of visual-test instability.
  • A screenshot command passes but regressions are not detected: confirm the workflow includes an image-comparison assertion or integration. Cypress’s built-in screenshot command alone only captures.
  • The screenshot matches but the flow is broken: add assertions for interaction and recovery behavior. A matching image is not proof that controls work.

Or skip the browser setup

For a screenshot endpoint rather than an in-browser test runner, ScreenshotNeo takes a URL and returns an image or PDF. A single request looks like this; see the ScreenshotNeo API documentation for request options.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

ScreenshotNeo accepts cookie and consent banners before capture and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each of those steps can be turned off. Bot checks and CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and the response identifies the page verdict and billing status in headers. Its MCP server provides take_screenshot, get_page_info, and capture_pdf tools for AI agents. The Free plan includes 1,000 screenshots a month without a card; paid plans start at $5 for 3,000. These URL captures do not replace controlled in-app state tests: use your test setup to drive the app into loading, empty, or error states before capturing them. Sign up for 1,000 free screenshots a month, no card required.

Frequently Asked Questions

Does Cypress compare screenshots by itself?

No. Its built-in cy.screenshot() captures images; comparison needs a plugin or integration.

Can a visual screenshot prove a state is accessible?

No. Pair visual checks with semantic and accessibility assertions; pixels cannot establish accessible meaning or full usability.

Quick Recap

SaleBestseller No. 1
Logitech Brio 101 Full HD 1080p Webcam for Streaming and Meetings - Black
Logitech Brio 101 Full HD 1080p Webcam for Streaming and Meetings - Black
Compatible with Nintendo Switch 2’s new GameChat mode; Built-In Mic: The built-in microphone lets others hear you clearly during video calls
$35.80
SaleBestseller No. 2
Logitech C270 720p Webcam Plug-and-Play Wide Screen Video Calling - Black
Logitech C270 720p Webcam Plug-and-Play Wide Screen Video Calling - Black
Compatible with Nintendo Switch 2’s new GameChat mode
$16.89
Bestseller No. 5
Logitech C920x HD Pro PC Webcam Full 1080p/30fps Video - Black
Logitech C920x HD Pro PC Webcam Full 1080p/30fps Video - Black
Compatible with Nintendo Switch 2’s new GameChat mode; Fully compatible with Windows 11
$69.99

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.