Automated Webpage Layout Verification Using Anchor Points

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Webpage designers face the challenge of ensuring that webpages maintain a consistent layout across various screen sizes without manual testing on each device, as resizing can cause elements to overlap, disappear, or change relative locations, leading to time-consuming manual testing processes.

Innovation Solution

Automated testing systems that record and modify test scripts to verify the layout of webpages by resizing the browser window pixel by pixel, using anchor points and relative location comparisons to detect layout errors such as overlap or missing elements, and employing CSS queries and HTTP headers to gather screen size data.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Manufacturing precision

If manual testing is performed on various screen sizes to ensure layout consistency, then layout accuracy is improved, but testing time and labor cost increase significantly

Engineering Contradiction:
Improvelayout accuracyVSAvoidtesting time
Core Design Contradiction:
Manufacturing precisionVSLoss of time

Solution Approach 1:

The patent creates virtual copies of the webpage at different screen sizes using automated test scripts. Instead of manually testing each screen size, the system generates multiple instances of the webpage rendered at different dimensions, allowing automated verification of layout consistency across all target screen sizes simultaneously.

Inventive Principle:
Principle #26Copying

Solution Approach 2:

The patent systematically varies the screen size parameters (width and height) in the automated test scripts to cover multiple display scenarios. By programmatically changing these parameters, the system can test layout adaptability across numerous screen configurations without manual intervention for each case.

Inventive Principle:
Principle #35Parameter changes

2Productivity

If automated test scripts are used to verify layout across multiple screen sizes, then testing efficiency is improved, but script complexity and setup time increase

Engineering Contradiction:
Improvetesting efficiencyVSAvoidscript complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent develops universal test scripts that can automatically adapt to multiple screen sizes and configurations through parameterization. These scripts incorporate meta queries and responsive design detection capabilities that work across different device types, eliminating the need to create separate scripts for each screen size and reducing overall script complexity.

Inventive Principle:
Principle #6Universality (Multi-functionality)

3Adaptability or versatility

If webpages are designed to automatically adapt to different screen sizes using meta queries, then adaptability is improved, but layout consistency across devices deteriorates

Engineering Contradiction:
Improvescreen size adaptabilityVSAvoidlayout consistency
Core Design Contradiction:
Adaptability or versatilityVSStability of the object's composition

Solution Approach 1:

The patent implements automated feedback mechanisms that verify whether the webpage's automatic adaptation actually maintains layout consistency. The test scripts detect element positions, check for overlaps, and validate that critical layout elements remain properly positioned across different screen sizes, providing feedback on whether the responsive design is working correctly.

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS11886790B2Method and system for automatic test website layout
Publication Date: 2024.01.30 MICRO FOCUS LLC
  • US11886790B2 patent drawing
  • US11886790B2 patent drawing
  • US11886790B2 patent drawing

AI summary

Method and system to automatically verify the layout of a webpage on various screen sizes. The method includes retrieving screen size data associated with the webpage. The method further includes determining anchor points for the webpage based on the retrieved screen size data. The method also includes rendering the plurality of elements of the webpage based on the retrieved screen size data and the determined anchor points and identifying a respective location of each of the plurality of elements of the webpage to verify the layout of the plurality of elements of the webpage. If an error in the layout of the webpage is detected, a visual and/or audio alert is sent.