US 11,886,790 B2
Method and system for automatic test website layout
Er-Xin Shang, Shanghai (CN); Hua-Ming Zhai, Shanghai (CN); and Tezeen Yu, Shanghai (CN)
Assigned to Micro Focus LLC, Santa Clara, CA (US)
Filed by MICRO FOCUS LLC, Santa Clara, CA (US)
Filed on Aug. 5, 2021, as Appl. No. 17/395,041.
Prior Publication US 2023/0044682 A1, Feb. 9, 2023
Int. Cl. G06F 40/106 (2020.01)
CPC G06F 40/106 (2020.01) 20 Claims
OG exemplary drawing
 
1. A system, the system comprising:
a processor; and
a memory coupled with and readable by the processor and storing therein a set of instructions which, when executed by the processor, causes the processor to verify a layout of a plurality of elements of a webpage by:
retrieving screen size data associated with the webpage, wherein the retrieved screen size data indicates one or more supported screen sizes for the webpage;
determining anchor points for the webpage based on the retrieved screen size data, wherein the determined anchor points specify borders of the webpage, and wherein the determined anchor points are specific to each of the one or more supported screen sizes for the webpage;
rendering the plurality of elements of the webpage based on the retrieved screen size data and the determined anchor points;
identifying a respective location of each of the plurality of elements of the webpage;
verifying the layout of the plurality of elements of the webpage based on anchor points and the respective location of each of the plurality of elements of the webpage; and
in response to detecting an error in the layout of the plurality of elements of the webpage resulting from a change in screen size, collapsing two or more elements into an expandable menu, wherein the error in the layout of the plurality of elements of the webpage comprises at least one of: at least one of the two or more elements not being within the determined anchor points, the two or more elements overlapping, and at least one of the two or more elements shifting downward in the layout of the plurality of elements.