DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
Skip to content
World desk4 min

How to Monitor a Website for Visual Changes While Ignoring Timestamps

Compare page snapshots while excluding only the timestamp element, and add a separate assertion if the displayed time must be correct.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Compare each page capture with a visual baseline, but exclude only the timestamp element—not a broad section around it. That keeps the rest of the page under test while preventing a changing time or date from generating a visual diff. If the timestamp’s correctness matters, check its text separately with a functional assertion.

Choose what the test should ignore

Start by deciding whether you care about the timestamp’s appearance, its exact text, or both. A visual ignore region removes that element from the image comparison; it does not verify whether the displayed time is correct.

As an Amazon Associate I earn from qualifying purchases.

  • Ignore one element when the page should otherwise be compared strictly. Prefer a stable DOM locator or selector over screen coordinates.
  • Use a layout-oriented match when page structure and geometry matter more than changing text. Applitools describes Layout matching as checking layout regardless of specific dynamic content in its Layout match-level guidance.
  • Keep the timestamp in scope if visual changes to its styling are important; instead, stabilize the test data or use a mode that tolerates changing content while preserving relevant appearance checks.

Avoid excluding an entire card or page region just to hide one changing value. A large ignore can conceal meaningful changes to nearby labels, spacing, or controls.

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

Ignore a timestamp in an Applitools Playwright check

Applitools Eyes for Playwright supports locator-based ignored regions through ignoreRegions. The following illustrates the relevant pattern; use the current SDK setup and imports for your installed package version, and ensure the locator identifies the timestamp rather than its parent container.

await eyes.check('Article page', {
  ignoreRegions: [page.locator('[data-testid="published-at"]')],
});

For an example of the documented Playwright checkpoint and region configuration, see Applitools’ Playwright documentation. Its support article describes Layout matching for dynamic-content pages, while its current product page claims automatic handling of dynamic data such as timestamps; that is a vendor claim, not an independent evaluation: Applitools Eyes.

Use the controls in your existing visual-testing workflow

Chromatic

Chromatic documents three ways to ignore component content: the .chromatic-ignore class, data-chromatic="ignore", and the ignoreSelectors configuration. Use the narrowest option that fits the component. A caveat: Chromatic says the ignored element’s pixels are ignored, but changes to its dimensions still trigger diffs. That can be useful if a timestamp container unexpectedly grows, though it means a variable-width timestamp may still affect results. See Chromatic’s element-ignoring documentation.

Rank #2
AT-A-GLANCE Undated Website Address Book and Password Keeper, Black, 3.63 x 6.13 x .21 Inches (80-500-05)
  • Bookbound planner helps you keep track of passwords and favorite websites
  • Room for over 200 entries; 3.5 x 6 inch page sizes
  • User name and security questions field
  • Tips for what makes a strong password; web resources; notes pages
  • Printed on quality paper containing 30% post-consumer waste; black simulated leather cover; 3.63 x 6.13 x .21 inches

Percy with Playwright

Percy’s Playwright client README documents ignored regions using CSS selectors, XPath, or custom boundaries, along with per-region comparison settings. Prefer a selector or XPath tied to the timestamp element when possible; a fixed coordinate rectangle can drift out of alignment if the page layout changes. Confirm syntax against the version of the Percy package in your project before copying configuration. See the Percy Playwright client README.

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

Keep timestamp correctness covered

If the displayed value must be valid, add a separate assertion for its text or semantics. For example, check that the element exists and that its text parses as the expected date/time format; if the test has a controlled clock or known fixture, assert the expected value. An ignored visual region cannot catch a stale timestamp, an incorrect timezone, or a formatting regression.

Applitools’ Playwright guidance discusses textual assertions for dynamic aspects that require programmatic evaluation. Keep that assertion independent of the visual mask so each test has a clear purpose.

Make comparisons repeatable and review diffs carefully

  • Capture the same route, viewport, page state, and test setup for baseline and later runs. This is practical test hygiene rather than a vendor-neutral standard.
  • Use a stable test identifier or selector where available; avoid brittle positional selectors.
  • Inspect the ignored region’s boundary. Nearby content should remain visible to the comparison.
  • Review the diff before accepting it. Update a baseline only when the change is intentional; Applitools describes accepting differences and updating baselines from its enhanced report in its integration tutorials.

Or skip the browser setup

For a screenshot capture without configuring a browser runner, ScreenshotNeo offers a one-request screenshot API. A clean screenshot request looks like this:

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

See the ScreenshotNeo API documentation for request options. ScreenshotNeo accepts cookie or consent banners as a visitor and removes more than 60 known consent platforms, newsletter popups, and chat widgets before capture; each step can be turned off. Bot checks/CAPTCHAs, blank pages, timeouts, failed loads, and cache hits cost nothing, and responses identify the page verdict and billing status in headers. Its MCP server gives AI agents tools for screenshots, page information, and PDF capture. The Free plan includes 1,000 shots per month with no card; paid plans start at $5 for 3,000 shots.

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

Sign up for 1,000 free screenshots a month, with no card required.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Frequently Asked Questions

How do I ignore timestamps in visual regression tests?

Target the timestamp element with the visual-testing tool’s ignore-region or selector feature, then assert its text separately if its value must be correct.

Best Value
Sale
Password Book with Alphabetical Tabs, Password Keeper for Seniors 5.3"x7.7"
  • 【Featured A-Z Tabs & Untitle for Security】Our password books have recognizable alphabetical tabs with the colorful design allow you to locate quickly and save time. The anonymous cover of our password keeper is unobtrusive and stays secure.
  • 【Premium Quality & Perfect Size】This password journal features a eco-leather hardcover and 100gsm no-bleed paper, equipped with an elastic band, inner pocket, pen loop and bookmark. It comes in medium format (5.3 x 7.7 inches) which is the perfect size you need.
  • 【Clean Layout & Plenty of Space】 Each tab has 6 pages with 4 entries per page and contains more than 552 passwords in our password organizer. This password notebook also provides more password space in case you need to change your password.
  • 【Perfect Organization & Safe Placement】We ensure this password log book provides you with a secure space to keep passwords and web addresses. You won't have to worry about passwords being leaked or hacked.
  • 【Thoughtful Gift & Warm Heart】 Considering for practical gifts for family or friends? Our specially designed internet password book is sturdy and easy to use. Ideal for any occasion, it's a gift that truly shows care.

Can I ignore dynamic content without hiding layout changes?

Use a narrow element ignore when only that value should be excluded, or a layout-oriented comparison when structure matters more than exact content. Check how your tool handles the ignored element’s dimensions.

Quick Recap

SaleBestseller No. 1
Bestseller No. 2
AT-A-GLANCE Undated Website Address Book and Password Keeper, Black, 3.63 x 6.13 x .21 Inches (80-500-05)
AT-A-GLANCE Undated Website Address Book and Password Keeper, Black, 3.63 x 6.13 x .21 Inches (80-500-05)
Bookbound planner helps you keep track of passwords and favorite websites; Room for over 200 entries; 3.5 x 6 inch page sizes
$9.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
PC Slower Than It Used to Be?Free scan - under a minute
Crashes, No Sound, or Screen Glitches?Free driver 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.