UI Validation via DOM Screenshot Comparison

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional software testing tools are limited in verifying or validating the design or layout of a user interface (UI) of a software application, failing to identify unwanted changes or bugs introduced in the UI when the Document Object Model (DOM) is modified.

Innovation Solution

A system and method that involve making changes to the DOM of a software application, saving and rendering the updated UI, capturing a screenshot, and validating it by comparing the screenshot with a reference image using image matching techniques, while masking variable features to ensure privacy and effective comparison.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If conventional software testing tools are used to verify UI, then the testing process is simple, but the ability to identify unwanted changes or bugs in UI is insufficient

Engineering Contradiction:
ImproveUI validation accuracyVSAvoidtesting system complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent creates a visual copy (screenshot) of the rendered UI and compares it against a reference image to validate UI correctness. This copying approach enables precise visual validation without requiring complex manual inspection, directly resolving the contradiction between validation accuracy and system complexity.

Inventive Principle:
Principle #26Copying

Solution Approach 2:

The patent replaces manual UI inspection with automated image processing and comparison algorithms. By substituting mechanical/manual verification with computational image analysis, the system achieves high validation accuracy while maintaining automated operation, effectively resolving the contradiction between measurement precision and operational complexity.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

2Adaptability or versatility

If DOM changes are made to update UI, then the UI can be improved or modified, but unwanted changes or bugs may be introduced

Engineering Contradiction:
ImproveUI modification capabilityVSAvoidUI correctness
Core Design Contradiction:
Adaptability or versatilityVSReliability

Solution Approach 1:

The patent implements a feedback mechanism where the rendered UI is captured as a screenshot and compared against the expected reference image. This feedback loop automatically detects deviations caused by DOM changes, enabling verification of UI correctness while maintaining the flexibility to modify UI through DOM updates.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The patent performs preliminary validation by comparing the rendered UI screenshot against a pre-established reference image before the UI is deployed or committed. This preliminary action ensures that unwanted changes are detected early, maintaining UI reliability while allowing flexible DOM-based modifications.

Inventive Principle:
Principle #10Preliminary action

3Measurement precision

If screenshot comparison is performed for UI validation, then validation accuracy is improved, but processing time increases

Engineering Contradiction:
ImproveUI validation accuracyVSAvoidvalidation processing time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The patent extracts and compares only the visually relevant portions of the UI by capturing screenshots and performing image comparison. This extraction approach focuses validation efforts on the actual rendered output rather than analyzing entire DOM structures, improving validation accuracy while reducing processing time through targeted comparison.

Inventive Principle:
Principle #2Taking out (Extraction)

Data Source

PatentUS20250068550A1System and method for validating user-interface
Publication Date: 2025.02.27 ALKIRA INC
  • US20250068550A1 patent drawing
  • US20250068550A1 patent drawing
  • US20250068550A1 patent drawing

AI summary

Provided are a system and a method for validating a user-interface (UI). The system is configured to cause to make a change to a document object model (DOM) of a software application. The DOM of the software application is associated with the UI of the software application. The systems is configured to save the change associated with the DOM, render an updated user interface based on the changed DOM, capture a screenshot of the updated user interface, and validate the updated user interface based on a comparison between the screenshot and a reference image associated with the updated user interface