LimitedImplementation, done for youLearn more

Snapflow vs Playwright or Puppeteer screenshot scripts

Screenshot scripts retake help center screenshots on every release until a redesign breaks their selectors. What they cost to keep, and when they still win.

4 min read

On this page

When a team with engineers decides its help center screenshots should update themselves, the first idea is usually a script: Playwright or Puppeteer, one script per screenshot, run on every release. It works, and it's free. This page is about what it costs to keep it working, and where it's still the better choice.

What does a screenshot script do?

The same steps a person does, written as code. A script per screenshot signs in, opens the page, clicks to get the screen into the state the article shows, and saves the picture. In Playwright the last step looks like this:

await page.goto("https://app.example.com/settings");
await page.getByRole("link", { name: "Notifications" }).click();
await page.screenshot({
  path: "notifications.png",
  animations: "disabled",
  mask: [page.getByTestId("account-email")],
});

Playwright's page.screenshot can crop to a region, capture the full page, stop animations and hide the text cursor. Its mask option covers the elements you list with a solid box, pink unless you set maskColor, which keeps private data out. Puppeteer takes screenshots too, but has no mask option: hiding data is up to the script. Neither puts the new image into your help center; that's another piece of code, against your help center's API.

This is browser automation, usually in a headless browser, and it's the same tooling many teams already use for end-to-end tests.

Why do screenshot scripts break?

Mostly the selectors. A script finds what to click by a CSS class, a test ID or the text on a button. When a deploy renames a class, moves a menu or changes a label, the script can't find its way and fails, or worse, captures the wrong screen.

How often that happens depends on the size of the front-end team. With two or three front-end engineers who know the scripts exist, selectors can be kept stable. With a bigger team shipping every day, someone will change one without knowing a screenshot depends on it, and the larger the team, the more often it happens.

The rest wears down more slowly:

  • Logins expire. Playwright reuses a saved sign-in, and its docs say plainly that you need to delete the stored state when it expires. Two-factor and single sign-on aren't covered at all; they're up to you.
  • Test data drifts. The account the scripts sign in to slowly fills with leftovers, and screenshots start showing them.
  • Failures are quiet. When a script fails, the old screenshot stays in the article. Unless someone reads the CI log, nobody knows that screenshot stopped updating.

Who uses screenshot scripts?

Teams that prefer to build things in house, and teams whose docs live in Git next to the code (docs-as-code). For the first, it often ends the same way: a growing set of internal support tools to maintain, taking engineering time away from the product itself.

What does Snapflow do differently?

There's no script and no selector. Snapflow reads each article in your help center, works out what its screenshots show from the text and the old image, and finds each screen in your product the way a person following the article would. When a menu moves or a button is renamed, it finds it again from what the article says. When it can't, it tells you why, instead of keeping the old image quietly.

It signs in with a demo account, hides the elements you've marked as private, adds your arrows and frame, and holds each new screenshot next to the live one for review. Each has a permanent image address, so the article updates without another upload. On the Scale plan, your release pipeline can start a retake through the API, the way it would run a script.

No script to fix: the retaken screenshot next to the live one, waiting for review.

Snapflow vs screenshot scripts at a glance

SnapflowPlaywright or Puppeteer scripts
Best forKeeping a whole help center current without engineering timeA few stable screens, owned by engineers
Set up per screenshotNothing: it starts from the articleA script, written by a developer
After a redesignFinds the screen again from the articleSelectors break; scripts are fixed by hand
When one can't be takenTells you whyFails in CI; the old image stays
Private dataHides the elements you choosePlaywright masks what each script lists
Into the articlePermanent image address, or straight into Intercom and ZendeskMore code, against your help center's API
Cost$79 a month for 500 screenshotsFree, plus the engineering time

Feature by feature

Snapflow and Playwright or Puppeteer scripts, feature by feature
FeatureSnapflowScripts
Keeping your help center current
Retakes screenshots on its own when the product changesYesAfter each release or on a scheduleYesEach time the scripts run, in CI or on a schedule
Nothing to record for each screenshotYesWorks out each one from the articleNoA script per screenshot, written by a developer
Keeps working after a redesign, with nothing to fixYesFinds the screen again from the articleNoChanged selectors break the scripts
Updates the images in the articles you already haveYesAdded once, by a permanent addressPartlyOnly if someone codes the upload
Setup and privacy
Nothing to installYesNeeds a demo account, nothing elseNoCode, browsers and somewhere to run them
Keeps private data out of screenshots automaticallyYesHides the elements you choose, on every retakePartlyPlaywright masks the elements a script lists
Making new guides
Turns a recording into a step-by-step guideNoWorks on articles that already existNo
More on Playwright or Puppeteer scripts
Free to useNo$79 a month for 500 screenshotsYesOpen source; you pay in engineering time
Reaches screens behind single sign-on or two-factorNoUsername and password demo accountsPartlyIf someone codes and keeps up the login
Runs from your release pipelineYesThrough the API, on ScaleYes
Someone outside engineering can run and fix itYesNo

Checked on each tool’s own site on

When are scripts the better choice?

When the screens are few and stable and engineers already own the docs, especially docs that live in Git. When screenshots sit behind single sign-on or two-factor, which Snapflow can't sign in to yet. And when you already run end-to-end tests with visual regression testing, where the browser setup and logins exist and a few screenshots for the docs ride along.

Past a few dozen screenshots, or with a front-end team big enough that selectors change without warning, the scripts become a product of their own. The guide to automating help center screenshots compares every way of doing it, and Snapflow vs LaunchBrightly the other tool built for it, which also relies on selectors.

How many of my screenshots are out of date?

The free audit dates every screenshot in your help center and lists the articles edited after their screenshots were taken. About five minutes, no account.

Questions

Can Playwright take screenshots for documentation?

Yes. A script signs in, opens the page, sets up the screen and calls page.screenshot, which can crop to an element, turn off animations and mask elements with a solid box. It works well for a few stable screens. Every script is code someone has to keep working as the product changes.

Why do screenshot scripts break?

Mostly because the selectors they use change. A renamed class, a moved button or a new layout means the script can't find what it clicks, and it fails or captures the wrong screen. Logins expire too: Playwright's own docs say a saved sign-in has to be deleted when it expires.

Is Snapflow built on Playwright?

Snapflow drives a real browser, like a script does, but nobody writes or maintains a script. An AI agent reads each article, works out which screen its screenshot shows and finds it in your product the way a person following the article would.

See how old your help center's screenshots are

Free scan no account results in about five minutes

Share this article