IP Library › Granted Patent US 12,724,700
Granted Patent B2
US 12,724,700 · App. 18/107,420 · Granted Sep 1, 2026

Auto-fix object not found error using image recognition

Inventors: Bin Li (Shanghai, CN); Renber Xue (Shanghai, CN); Wen-Jie Qian (Shanghai, CN)
Assignee: Micro Focus LLC
G06F11/3688G06F11/3684G06T7/62G06V10/25G06V2201/07
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,724,700
App. No.
18/107,420
Filed
Feb 8, 2023
Granted
Sep 1, 2026
Kind
B2
Art Unit
2192
USPC
717/124
Abstract

A system, device, system-on-a-chip, and method of automatically correcting an object not found error using image recognition are described. The method includes running a test script for testing and analysis of a web page as rendered by a web browser. The method further includes, responsive to detecting the object not found error, automatically locating a missing object associated with the object not found error. One method of locating a missing object includes using image recognition. The method also includes updating the test script with a located object. The method may also include replaying the test script.

Claims (46)

1 . A system, comprising:

a processor; and

a memory coupled with and readable by the processor and storing a set of instructions which, when executed by the processor, cause the processor to automatically correct an object not found error by:

running a test script for testing and analysis of a web page as rendered by a web browser;

responsive to detecting the object not found error while running the test script, automatically executing a search for a missing object associated with the object not found error, wherein the search includes determining a target region where the missing object is located, and wherein the search comprises using image recognition on a captured image of a graphical user interface generated during execution of the test script, the search being initiated relative to a computed center point of the target region corresponding to an expected location of the missing object;

locating the missing object and returning information that identifies a target element attribute or path for the missing object;

updating the test script with the returned information that identifies the target element attribute or path for the missing object; and

replaying the test script.

2 . The system of claim 1 , wherein automatically locating the missing object further comprises:

using Artificial Intelligence (AI) image recognition to locate the missing object associated with the object not found error.

3 . The system of claim 2 , wherein the AI image recognition uses recognized key attributes to locate the missing object associated with the object not found error.

4 . The system of claim 3 , wherein the key attributes comprise at least one of: a tag name, an identifier, a class, a role, a type, and a name.

5 . The system of claim 3 , wherein the key attributes are determined by processing a Document Object Model (DOM) associated with the web page.

6 . The system of claim 1 , wherein automatically locating the missing object associated with the object not found error further comprises:

responsive to more than one object being located in the determined target region, selecting a topmost object for updating the test script with the returned information that identifies the target element attribute or path for the missing object.

7 . The system of claim 1 , wherein automatically locating the missing object associated with the object not found error further comprises:

responsive to more than one target region being located, determining key attributes for the missing object; and

locating the missing object based on the determined key attributes.

8 . The system of claim 1 , wherein the captured image of the graphical user interface running the test script is captured by intercepting a video image sent to a display.

9 . A computer-implemented method to automatically correct an object not found error, the method comprising:

during runtime, executing a test script for testing and analysis of a web page as rendered by a web browser;

responsive to detecting the object not found error while running the test script, automatically executing a search for a missing object associated with the object not found error, wherein the search includes determining a target region where the missing object is located, and wherein the search comprises using image recognition on a captured image of a graphical user interface generated during execution of the test script, the search being initiated relative to a computed center point of the target region corresponding to an expected location of the missing object;

locating the missing object and returning information that identifies a target element attribute or path for the missing object;

updating the test script with the returned information that identifies the target element attribute or path for the missing object; and

replaying the test script.

10 . The computer-implemented method of claim 9 , wherein automatically locating the missing object associated with the object not found error further comprises:

using Artificial Intelligence (AI) image recognition to locate the missing object associated with the object not found error.

11 . The computer-implemented method of claim 10 , wherein the AI image recognition uses recognized key attributes to locate the missing object associated with the object not found error.

12 . The computer-implemented method of claim 11 , wherein the key attributes comprise at least one of: a tag name, an identifier, a class, a role, a type, and a name.

13 . The computer-implemented method of claim 12 , wherein the key attributes are determined by processing a Document Object Model (DOM) associated with the web page.

14 . The computer-implemented method of claim 9 , further comprising:

responsive to more than one object being located in the determined target region, selecting a topmost object for updating the test script with the returned information that identifies the target element attribute or path for the missing object.

15 . The computer-implemented method of claim 9 , wherein the captured image of the graphical user interface running the test script is captured by intercepting a video image sent to a display.

16 . A non-transitory, computer-readable medium comprising a set of instructions stored which, when executed by a processor, cause the processor to automatically correct an object not found error by:

running a test script for testing and analysis of a web page as rendered by a web browser;

responsive to detecting the object not found error while running the test script, automatically executing a search for a missing object associated with the object not found error, wherein the search includes determining a target region where the missing object is located, and wherein the search comprises using image recognition on a captured image of a graphical user interface generated during execution of the test script, the search being initiated relative to a computed center point of the target region corresponding to an expected location of the missing object;

locating the missing object and returning information that identifies a target element attribute or path for the missing object;

updating the test script with the returned information that identifies the target element attribute or path for the missing object; and

replaying the test script.

17 . The non-transitory, computer-readable medium of claim 16 , wherein the set of instructions, when executed by the processor, cause the processor further to:

automatically locate the missing object associated with the object not found error using Artificial Intelligence (AI) image recognition.

18 . The non-transitory, computer-readable medium of claim 16 , wherein the set of instructions, when executed by the processor, cause the processor further to:

determine key attributes for the missing object associated with the object not found error, wherein the key attributes comprise at least one of: a tag name, an identifier, a class, a role, a type, and a name.

19 . The non-transitory, computer-readable medium of claim 16 , wherein the set of instructions, when executed by the processor, cause the processor further to:

responsive to more than one object being located in the determined target region, select a topmost object for updating the test script with the returned information that identifies the target element attribute or path for the missing object.

20 . The non-transitory, computer-readable medium of claim 16 , wherein the captured image of the graphical user interface running the test script is captured by intercepting a video image sent to a display.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Feb 8, 2023
From: LI, BIN; XUE, RENBER; QIAN, WEN-JIE
To: MICRO FOCUS LLC
Reel/Frame 062632/0964 →
Continuity (1)
Related Publication 20240264928A1 · Aug 8, 2024
References Cited (28)
US 7831542B2 · Milov · 2010 [cited by applicant]
US 9703770B2 · Bartley et al. · 2017 [cited by applicant]
US 10963731B1 · Sarkar et al. · 2021 [cited by applicant]
US 11907107B2 · Kumar · 2024 [cited by examiner]
US 20200073686A1 · Hanke · 2020 [cited by examiner]
US 20220114368A1 · Mukherjee · 2022 [cited by examiner]
US 20220121723A1 · Page · 2022 [cited by examiner]
US 20220147439A1 · Shang · 2022 [cited by examiner]
US 20220171510A1 · Fredericks · 2022 [cited by examiner]
US 20220261336A1 · Luzon · 2022 [cited by examiner]
US 20220326917A1 · Chintala · 2022 [cited by examiner]
US 20220391621A1 · Chen · 2022 [cited by examiner]
US 20230214239A1 · Singh · 2023 [cited by examiner]
US 20230393963A1 · Mangat · 2023 [cited by examiner]
US 20240233311A1 · Jiang · 2024 [cited by examiner]
CN 103034583A · 2013 [cited by applicant]
CN 111679976A · 2020 [cited by applicant]
CN 113535587A · 2021 [cited by examiner]
CN 114064157A · 2022 [cited by applicant]
CN 114329149A · 2022 [cited by applicant]
WO WO2020047040A1 · 2020 [cited by examiner]
Filippo Ricca, AI-based Test Automation: A Grey Literature Analysis, 2021, pp. 1-8. https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=9440153 (Year: 2021). [cited by examiner]
English translation, Hanke et al. (WO 2020047040 A1), pp. 1-18, 2020. (Year: 2020). [cited by examiner]
English translation, Hanke et al. (WO 2020047040 A1), pp. 1-14, 2020. (Year: 2020). [cited by examiner]
Michel Nass, Similarity-based web element localization for robust test automation, 2022, pp. 1-25. chrome-extension://efaidnbmnnnibpcajpcglclefindmkaj/https://arxiv.org/pdf/2208.00677 (Year: 2022). [cited by examiner]
Zebao Gao, SITAR: GUI Test Script Repair, 2016, pp. 1-17. https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=7214294 (Year: 2016). [cited by examiner]
Frolin S. Ocariza, AutoFLox: An Automatic Fault Localizer for Client-Side JavaScript, 2012, pp. 1-10. https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=6200094 (Year: 2012). [cited by examiner]
Nikolaj Buhl, How to Find and Fix Label Errors, 2022, pp. 1-15. https://encord.com/blog/find-and-fix-label-errors-guide/ (Year: 2022). [cited by examiner]