Back to Blog

WebdriverIO Visual Regression Testing: Visual Service, Selenium Options and Setup

WebdriverIO has an official visual testing service; Selenium has none. How to set up @wdio/visual-service, plus Percy, Argos, Applitools and Sauce Visual.

Yuriy Gerasymov
Yuriy Gerasymov
21 Nov 2026 · 8 min read

Unlike Cypress, WebdriverIO has an official answer to visual testing: @wdio/visual-service, a free service maintained under the WebdriverIO organisation. It takes screenshots of the screen, a full page or a single element, compares them with baselines on disk, and fails the test when they differ. Selenium WebDriver, which WebdriverIO grew up next to, has nothing like it: it can save a screenshot, and that’s all.

This guide covers the options for both, as of November 2026, and how to set up the WebdriverIO service so the results mean something.

Your options at a glance

ToolTypeWorks withLatest releaseCost
@wdio/visual-serviceOfficial open-source serviceWebdriverIO 10 (v10 of the service for WebdriverIO 9)11.1.0, 6 November 2026Free, MIT
PercyHosted serviceWebdriverIO 6 to 10; Selenium SDKs@percy/webdriverio 3.3.5, 13 November 2026Free for 5,000 screenshots a month, Desktop from $199/month billed annually
ArgosHosted serviceWebdriverIO 6 to 10@argos-ci/webdriverio 0.10.3, 19 November 2026Free up to 5,000 screenshots for one person, Pro from $100/month
Applitools EyesHosted serviceWebdriverIO; Selenium SDKs@applitools/eyes-webdriverio 5.63.1, 18 November 2026Starter $667/month billed annually
Sauce VisualHosted service, part of Sauce LabsWebdriverIO; Java, Python and C#/.NET SDKs@saucelabs/wdio-sauce-visual-service 0.15.0, 23 October 2026Included in Sauce Labs plans from $59/month billed annually, with 500 snapshots a month

Release numbers and dates are from the npm registry, and prices from each vendor’s pricing page, checked on 21 November 2026. The “works with” column for npm packages comes from each package’s declared peer dependencies. Two things stand out there: @wdio/visual-service 11 requires WebdriverIO 10, and @saucelabs/wdio-sauce-visual-service 0.15.0 declares WebdriverIO 9 only, so check it before you upgrade.

One package to avoid: wdio-image-comparison-service. It’s the visual service’s predecessor, and npm marks it as deprecated.

The official service or a hosted one?

@wdio/visual-service keeps everything in your repository. Baselines are PNG files you commit, comparisons run inside your test process, and a failed check leaves a diff image on disk. It costs nothing and sends nothing anywhere. It also covers more than web pages: the same commands work for mobile browsers, native apps and hybrid apps through Appium.

What it doesn’t give you is a review screen. Somebody has to open the diff images, decide whether each change is intended, and update baselines in a commit. Hosted services take screenshots during your run, upload them, and give you a web UI where changes are reviewed, approved and kept as history. That’s the trade: free and self-contained, or a review workflow you pay for. See visual testing pricing compared for how each service counts screenshots.

Setting up @wdio/visual-service

Install the service for your WebdriverIO version:

# WebdriverIO 10
npm install --save-dev @wdio/visual-service

# WebdriverIO 9
npm install --save-dev @wdio/visual-service@10

Version 11 of the service also needs one of the Node.js versions WebdriverIO 10 itself needs: 22.23.4 or later on Node 22, 24.22.1 or later on Node 24, or 26.12.1 or later.

Add it to wdio.conf.js. Setting the folders explicitly keeps baselines out of your temporary files:

import path from 'node:path';

export const config = {
  // ...
  services: [
    [
      'visual',
      {
        baselineFolder: path.join(process.cwd(), 'tests', 'baseline'),
        screenshotPath: path.join(process.cwd(), '.tmp'),
      },
    ],
  ],
};

Then write checks with the service’s matchers:

describe('Homepage', () => {
  it('looks the same', async () => {
    await browser.url('/');

    await expect(browser).toMatchFullPageSnapshot('homepage');
    await expect($('header')).toMatchElementSnapshot('header');
  });
});

There are four kinds of check, each with a save* and a check* command and a matcher: the visible screen (checkScreen), a full page (checkFullPageScreen), one element (checkElement), and a page with its tabbable elements highlighted, for checking keyboard order (checkTabbablePage, desktop browsers only).

The first run creates the baselines and passes. autoSaveBaseline is on by default: when there’s no baseline for a check, the service saves the current screenshot as one. Look at those images before you commit them, because whatever is on screen during that first run becomes “correct”.

A check fails on any difference by default. The matchers expect a mismatch of 0%. To allow a little noise, pass a tolerance in percent:

await expect(browser).toMatchFullPageSnapshot('homepage', 0.5);

When a change is intended, update the baselines:

npx wdio run wdio.conf.js --update-visual-baseline

The service copies the new screenshots over the baselines and lets the checks pass. Review the image diff in your pull request before you merge.

If you’re upgrading from version 10 to 11 of the service: version 11 compares with pixelmatch 8, and its migration guide says mismatch percentages can change by a few per cent for the same images. Checks with a very tight tolerance may need their baselines re-accepted once.

Making WebdriverIO screenshots stable

A visual check is only useful if the same page gives the same screenshot twice. The service has options for the usual causes of noise, both in the service config and per check:

  • hideElements and removeElements take elements to hide (keeping their space) or remove before the screenshot: carousels, chat widgets, cookie banners.
  • ignore skips regions in the comparison, and blockOut skips rectangles.
  • disableCSSAnimation turns off CSS animations and transitions. It’s off by default.
  • hideScrollBars is on by default, and waitForFontsLoaded waits for web fonts.
await expect(browser).toMatchFullPageSnapshot('pricing', {
  hideElements: [await $('.testimonial-carousel')],
  removeElements: [await $('#cookie-banner')],
  disableCSSAnimation: true,
});

Fonts and anti-aliasing render differently on macOS, Windows and Linux, so baselines made on a laptop rarely match screenshots from CI. Generate and check baselines in the same environment, for example the same Docker image. The reasons are the same as for Playwright, covered in why screenshots differ between local, CI and Docker.

Hosted services with WebdriverIO

Each service adds one call to your tests and does the comparison on its side.

Percy. Install @percy/cli and @percy/webdriverio, call percySnapshot in a test, and run the suite through percy exec with your project’s PERCY_TOKEN set. Without percy exec, snapshots are skipped and the tests still run.

const percySnapshot = require('@percy/webdriverio');

it('homepage', async () => {
  await browser.url('/');
  await percySnapshot('Homepage');
});
PERCY_TOKEN=<token> npx percy exec -- wdio run wdio.conf.js

Argos. Install @argos-ci/webdriverio and @argos-ci/cli. argosScreenshot(browser, 'homepage') saves screenshots to ./screenshots/argos by default, and npx @argos-ci/cli upload ./screenshots uploads them, usually at the end of the CI job.

Applitools Eyes. @applitools/eyes-webdriverio can run as a WebdriverIO service (EyesService), configured in wdio.conf.js, with browser.eyesCheck('name') in tests and your key in APPLITOOLS_API_KEY.

Sauce Visual. Add @saucelabs/wdio-sauce-visual-service to your services next to the sauce service, set SAUCE_USERNAME and SAUCE_ACCESS_KEY, and call browser.sauceVisualCheck('Login page'). You need a Sauce Labs account; Sauce’s docs say the sauce service is what connects WebdriverIO to Sauce Labs.

Visual testing with Selenium

Selenium WebDriver can save a screenshot in every language it supports, but it has no image comparison and no baselines. Your options:

  • A hosted SDK. Percy has Selenium SDKs, for example percy-selenium for Python, where percy_snapshot(driver, 'Homepage') runs under percy exec like the WebdriverIO version. Applitools publishes Eyes SDKs for Selenium, for example eyes-selenium for Python. Sauce Visual has Java, Python and C#/.NET integrations.
  • Compare the images yourself. Save screenshots from the driver and compare them with a pixel-diff library. It works, but baselines, thresholds, masking and review are all yours to build.
  • Upload the screenshots somewhere that compares them. Any folder of PNG files works with Diffy, described next.

If you’re starting fresh rather than maintaining a Selenium suite, WebdriverIO with its visual service gets you the comparison, masking and baseline handling without writing them.

Where Diffy fits

Diffy works with WebdriverIO and Selenium in two ways.

Upload the screenshots you already take. The Diffy CLI uploads a folder of PNG or WebP files as a screenshot set and compares two sets in Diffy’s review UI. It doesn’t matter which tool saved them. With the visual service, saveFullPageScreen('homepage') writes to the actual folder under your screenshotPath:

diffy auth:login $DIFFY_API_KEY

diffy screenshot:create-folder $PROJECT_ID ./baseline-run/actual   # prints a screenshot set ID
diffy screenshot:create-folder $PROJECT_ID ./current-run/actual    # prints another ID
diffy diff:create $PROJECT_ID $BASELINE_ID $CURRENT_ID

Each file path becomes a page in Diffy, and the breakpoint is read from the image width, so keep file names the same between runs. The service’s default names (tag, browser name, size and pixel ratio) stay the same as long as you run the same checks in the same browser. In Diffy, the same change across many screenshots is grouped so you approve it once, changes can be approved from thumbnails, and review links work for people without an account. The CLI uses the Diffy API, which is included in every plan, the free one too.

Or skip the test code. If the question is “does staging still look like production?”, Diffy can screenshot both environments from a list of URLs and breakpoints on its own servers, with logins, masks and mocked content set in the project settings. Run it on a schedule or from GitHub Actions. Keep WebdriverIO for flows that need a script, such as logging in or going through checkout.

Frequently asked questions

Does WebdriverIO have built-in visual regression testing?

Yes, through the official @wdio/visual-service package. It’s a separate install, maintained under the WebdriverIO organisation, and adds commands such as checkScreen and checkFullPageScreen plus matchers such as toMatchFullPageSnapshot.

Which version of @wdio/visual-service do I need?

Version 11 supports only WebdriverIO 10. If you’re still on WebdriverIO 9, install @wdio/visual-service@10.

How do I update WebdriverIO visual baselines?

Run your tests with --update-visual-baseline. The service copies the new screenshot over the baseline and lets the check pass. Review the images before you commit them.

Does Selenium have visual regression testing?

No. Selenium WebDriver can take screenshots, but it has no image comparison. You add an SDK from a hosted service such as Percy, Applitools or Sauce Visual, compare the images yourself, or upload them to a tool like Diffy.

Can I use Percy or Argos with WebdriverIO?

Yes. Percy has @percy/webdriverio, which declares support for WebdriverIO 6 to 10, and Argos has @argos-ci/webdriverio, which declares 6 to 10 as well. Percy uploads during the run with percy exec; Argos saves screenshots locally and you upload them with its CLI.

Related reading: Cypress visual regression testing · Playwright visual regression testing · Storybook visual regression testing · What is visual regression testing?

Related Articles

More guides on visual regression testing, QA automation, and keeping your site pixel-perfect as it changes.