ScreenshotNeo

Blog

Guides for capturing the web

How to take clean screenshots, turn HTML into images and PDFs, run headless browsers, and give AI agents eyes. Written by the team that builds ScreenshotNeo.

How-to11 min read

How to Select Elements by Class in XPath

Use a whitespace-aware XPath 1.0 expression to match a class token exactly, even when an element has multiple classes. See runnable examples, pitfalls, and fixes.