Patent information
IP India · live recordAbstract
ABSTRACT OF INVENTION ARTIFICIAL INTELLIGENCE-BASED COMPUTING DEVICE AND METHOD FOR TEST-AUTOMATION FOR MULTI-PLATFORM WITH GRAPHICAL USER INTERFACE APPLICATIONS An artificial intelligence (AI)-based method (300) for test-automation for multi-platform with a graphical user interface applications is disclosed. The method (300) includes capturing (302) a visual-representation of an application user interface. The method (300) includes identifying (304) location of at least one user interface element of the GUI applications within the visual-representation based on visual characteristics of the visual-representation. A multi-scale template matching is performed at plurality of scale factors between the visual-representation and plurality of reference images corresponding to a plurality of user interface elements. The method (300) includes determining (306) positional coordinates corresponding to the at least one user interface element of GUI applications within visual-representation based on identified location of at least one user interface element of GUI applications within the visual-representation. The method (300) includes executing (308) test-automation for multi-platform with at least one user interface element of the GUI applications at the determined positional coordinates.
Applicants
1Inventors
4Specification
Show full textCollapse
Description:
FORM 2 THE PATENTS ACT 1970 (39 of 1970) & THE PATENTS RULES, 2003 COMPLETE SPECIFICATION (See section 10 and rule 13) 1. TITLE OF THE INVENTION ARTIFICIAL INTELLIGENCE-BASED COMPUTING DEVICE AND METHOD FOR TEST-AUTOMATION FOR MULTI-PLATFORM WITH GRAPHICAL USER INTERFACE APPLICATIONS 2. APPLICANT: (a) NAME : Comviva Technologies Limited (b) NATIONALITY : India (c) ADDRESS : 5,7 & 8 Floor, Capital Cyberscape, Golf Course Ext Rd, Sector 59, Gurugram, Haryana 122102, India 3. PREAMBLE TO THE DESCRIPTION
COMPLETE
The following specification particularly describes the invention and the manner in which it is to be performed:
FIELD OF THE DISCLOSURE:
[001] The present application relates to the field of software engineering and test-automation, and more particularly relates to an artificial intelligence (AI)-based computing device and a method for test-automation for multi-platform with a graphical user interface applications.
BACKGROUND
[002] Modern software test-automation frameworks rely predominantly on document object model (DOM)-based locators. The DOM-based locators, such as extensible markup language (XML) path (XPath) expressions, cascading style sheets (CSS) selectors, and internal element identifiers, detect and interact with user interface components during automated test execution. These locators are tightly coupled to the structural and attribute-level representation of the UI. Consequently, even minor user interface (UI) modifications, including layout rearrangements, class or identifier (ID) changes, styling updates, or rendering differences across device types and environments, cause locator resolution to fail. This results in brittle test suites, high maintenance overhead, and inconsistent or flaky execution behavior.
[003] Existing self-healing mechanisms attempt to mitigate this fragility by dynamically modifying or recalculating locators based on changes detected in DOM attributes. However, such mechanisms remain fundamentally constrained, as they still assume the availability and reliability of the DOM hierarchy.
[004] These solutions fail in situations where the user interface undergoes major structural changes, when rendering behavior varies across different browsers or screen resolutions, or when third‑party or embedded components do not provide DOM metadata. Additionally, image‑based automation techniques in the prior art typically rely on rigid pixel‑to‑pixel screenshot matching, which makes them highly sensitive to changes in scale, resolution, color, partial occlusion, and dynamic UI states. Further, most existing tools operate as standalone utilities and lack architectural integration with modern test frameworks or continuous integration (CI)/ continuous deployment (CD) pipelines, rendering them unsuitable for scalable, enterprise‑grade automation.
[005] As a result, there exists a technical need for a platform-agnostic, locator-independent, vision-driven automation mechanism that operates purely on the visual representation of UI elements rather than DOM structures.
[006] Therefore, there is a need for enhanced techniques to address the above-mentioned deficiencies.
SUMMARY
[007] This summary is provided to introduce a selection of concepts, in a simplified format, that are further described in the detailed description of the disclosure. This summary is neither intended to identify key nor essential inventive concepts of the disclosure, nor is it intended to determine the scope of the disclosure.
[008] According to an embodiment, an artificial intelligence (AI)-based method for automated-interaction of a computing device with a graphical user interface (GUI) applications is provided. The method includes capturing a visual-representation of an application user interface. Further, the method includes identifying a location of at least one user interface element of the GUI applications within the visual-representation. The location is identified based on visual characteristics of the visual-representation. A multi-scale template matching is performed at a plurality of scale factors between the visual-representation and a plurality of reference images corresponding to a plurality of user interface elements. Furthermore, the method includes determining positional coordinates corresponding to the at least one user interface element of the GUI applications within the visual-representation. The positional coordinates are determined based on the identified location of at least one user interface element of the GUI applications within the visual-representation. Moreover, the method includes executing the automated-interaction with the at least one user interface element of the GUI applications at the determined positional coordinates.
[009] According to an embodiment, an artificial intelligence (AI)-based computing device for automated-interaction with a graphical user interface is provided. The computing device includes a memory configured to store a plurality of reference images corresponding to a plurality of user interface elements. Further, the computing device includes a display interface configured to receive a visual-representation of an application user interface. Furthermore, the computing device includes at least one processor, operably connected to the memory. The at least one processor is configured to capture the visual-representation of the application user interface. Further, the at least one processor is configured to identify a location of at least one user interface element of the GUI applications within the visual-representation. The identification of the location is based on visual characteristics of the visual-representation. A multi-scale template matching may be performed at a plurality of scale factors between the visual-representation and the plurality of reference images corresponding to the plurality of user interface elements. Additionally, the at least one processor is configured to determine positional coordinates corresponding to the at least one user interface element of the GUI applications within the visual-representation. The positional coordinates are determined based on the identified location of at least one user interface element of the GUI applications within the visual-representation. Still further, the at least one processor is configured to execute the automated-interaction with the at least one user interface element of the GUI applications at the determined positional coordinates.
[010] To further clarify the advantages and features of the present disclosure, a more particular description of the disclosure will be rendered by reference to specific embodiments thereof, which are illustrated in the appended drawings. It is appreciated that these drawings depict only typical embodiments of the disclosure and are therefore not to be considered limiting of its scope. The disclosure will be described and explained with additional specificity and detail in the accompanying drawings.
BRIEF DESCRIPTION OF THE DRAWINGS
[011] Features, aspects, and advantages of embodiments of the disclosure will be described below with reference to the accompanying drawings, in which reference numerals denote like elements, and wherein:
[012] Figure 1a illustrates an environment for the implementation of an artificial intelligence (AI)-based computing device for test-automation for multi-platform with a graphical user interface (GUI) applications, in accordance with one or more embodiments of the disclosure;
[013] Figure 1b illustrates the computing device, in accordance with one or more embodiments of the disclosure;
[014] Figure 2 illustrates a flow diagram of an open source computer vision library (OpenCV)-based automation framework as a fallback mechanism, in accordance with one or more embodiments of the disclosure; and
[015] Figure 3 illustrates a process flow of an AI-based method for the test-automation for multi-platform with the GUI applications, in accordance with one or more embodiments of the disclosure.
[016] Further, skilled artisans will appreciate that elements in the drawings are illustrated for simplicity and may not have necessarily been drawn to scale. For example, the flow charts illustrate the method in terms of the most prominent steps involved to help improve understanding of aspects of the present invention. Furthermore, in terms of the construction of the device, one or more components of the device may have been represented in the drawings by conventional symbols, and the drawings may show only those specific details that are pertinent to understanding the embodiments of the present invention so as not to obscure the drawings with details that will be readily apparent to those of ordinary skill in the art having the benefit of the description herein.
DETAILED DESCRIPTION
[017] For the purpose of promoting an understanding of the principles of the invention, reference will now be made to the various embodiments, and specific language will be used to describe the same. It will nevertheless be understood that no limitation of the scope of the invention is thereby intended, such alterations and further modifications in the illustrated system, and such further applications of the principles of the invention as illustrated therein, being contemplated as would normally occur to one skilled in the art to which the invention relates.
[018] It will be understood by those skilled in the art that the foregoing general description and the following detailed description are explanatory of the invention and are not intended to be restrictive thereof.
[019] Reference throughout this specification to “an aspect,” “another aspect,” or similar language means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, appearances of the phrase “in an embodiment”, “in another embodiment”, and similar language throughout this specification may, but do not necessarily, all refer to the same embodiment.
[020] The terms “comprises”, “comprising”, or any other variations thereof, are intended to cover a non-exclusive inclusion, such that a process or method that comprises a list of steps does not include only those steps but may include other steps not expressly listed or inherent to such process or method. Similarly, one or more devices or sub-systems or elements or structures or components preceded by “comprises... a” does not, without more constraints, preclude the existence of other devices or other sub-systems or other elements or other structures or other components or additional devices or additional sub-systems or additional elements or additional structures or additional components.
[021] The present disclosure relates to techniques computer vision-based automation framework that can perform end-to-end test-automation using visual recognition of UI elements, eliminating dependency on document object model (DOM)-based locators. In particular, the present disclosure provides a method and a system for a resilient open source computer vision library (OpenCV)-based automation framework that enables robust, intelligent, and adaptable element interaction driven solely by visual characteristics. The disclosed method and system can withstand user interface (UI) evolution, support heterogeneous environments including web, mobile, and desktop, and maintain consistent behavior across diverse execution contexts.
[022] Figure 1a illustrates an environment 100 for the implementation of an artificial intelligence (AI)-based computing device 130 for test-automation for multi-platform with a graphical user interface (GUI) applications, in accordance with one or more embodiments of the disclosure.
[023] In an exemplary embodiment, the environment 100 may comprise at least one computing device 130 executing an automated login workflow on a retail banking webpage displayed within a web browser. The computing device 130 may be in communication with one or more data sources 110 and test data 120.
[024] In an embodiment, the one or more data source 110 may include a plurality of images, screenshots, and templates of GUI elements associated with one or more software applications or webpages. In one implementation, the plurality of screenshots may be captured using built-in Application Programming Interfaces (APIs) or other native image-capturing mechanisms available within the computing device 130. The captured screenshots and the templates of GUI elements may subsequently be stored in the one or more data sources 110 for further processing. In a non-limiting example, the plurality of screenshots may be obtained using an external image-capturing device (not shown) and thereafter stored within the one or more data sources 110. The plurality of stored screenshots may serve as training input for a machine learning (ML) model or a deep learning (DL) model, enabling the computing device 130 to learn visual patterns, user interface behaviors, and user interface elements.
[025] In an embodiment, the computing device 130 may receive the test data 120 for execution of one or more automated test scenarios. The test data 120 may be supplied from an external device. In another implementation, the computing device 130 may autonomously retrieve the test data 120 from the external device through a communication interface that maybe wired or wireless communication interface. In a non-limiting example, the test data 120 may be provided directly by a user and subsequently uploaded onto the computing device 130 by an operator. Upon receiving the test data 120, the computing device 130 may perform one or more testing operations based on the vision-driven automation framework, as discussed throughout the disclosure. After completion of the testing process, the computing device 130 may generate an output artifact, such as an output file, a test report, or a log file. The generated output artifact may be presented to the operator or made available for further analysis, review, or archival.
[026] In an embodiment, the computing device 130 may be in communication with a system 131. In an implementation, the computing device 130 may comprise the system 131. In another implementation, the system 131 may be located at a server or a cloud platform. The detailed functioning of the system 131 is explained in the forthcoming paragraphs while explaining Figure 1b.
[027] In an embodiment, the webpage may include multiple visual objects such as a username text box, a password field, a “Login” button, and an optional “Remember Me” checkbox. These objects may be presented visually on the webpage but may vary in corresponding underlying document object model (DOM)-based locator technique across releases, browsers, or screen resolutions. The DOM)-based locator technique may refer to a platform and language that may be an independent hierarchical representation of a structured document, such as a hypertext markup language (HTML) and extensible markup language (XML) file. For instance, in the context of graphical and web-based user interfaces, the DOM-based locator technique may define the document as a tree of nodes, where each node may correspond to an element, attribute, or text segment of the document.
[028] In a web interaction scenario, objects corresponding to the GUI applications, such as edit boxes, buttons, links, images, checkboxes, radio buttons, and dropdown lists, may be identified by their DOM attributes. For example, element identifiers (IDs), classes, tag names, and XML Path Language (XPath)/cascading style sheets (CSS) selectors. The DOM-based locator technique may be tightly coupled to the underlying structural representation of the webpage and may fail when the GUI applications undergoes at least one of the modifications, rendering changes, cross-browser inconsistencies, or when DOM access may be restricted or unavailable.
[029] In an embodiment, the computing device 130 may initiate the automated sequence by capturing a visual representation of the currently displayed webpage. The visual-representation may comprise a bitmap capture of a GUI frame, for example, a screenshot or frame‑buffer raster containing color channels (Red, Green, Blue (RGB)/Red, Green, Blue, Alpha (RGBA) or grayscale) along with scale‑factor and dots per inch (DPI) metadata used for coordinate normalization. The captured representation may be a screenshot or rasterized frame of the visible browser window. Further, the computing device 130 may attempt to identify the location of relevant objects, for example, the “Username” input box within the visual-representation. To identify the location of relevant objects, the system 131 may perform multi-scale template matching. During the multi-scale template matching, a plurality of reference images, for example, different versions or resolutions of the username box iconography, may be compared against the captured frame at a plurality of scale factors. The comparison may be based purely on visual characteristics such as pixel patterns, edges, textures, and icon shapes. When the correlation score at a particular scale exceeds a predefined threshold, the system 131 may conclude that the object has been visually recognized and the approximate location has also been determined.
[030] Upon identifying the username input box, the system 131 may determine precise positional coordinates of the visually recognized object within the GUI applications. These coordinates may represent, for example, the center point or the top-left boundary of the detected element. Once the positional coordinates are established, the system 131 may proceed to execute the required the test-automation for the multi-platform. The test-automation may be interchangeably referred to herein and after as “automated-interaction”. The automated-interaction may include, but not be limited to, simulating a click or tap at the determined positional coordinates to activate the username field, followed by injecting keystrokes to input the username value. The system repeats the same visual-recognition and coordinate-determination steps for the password field and eventually locates the “Login” button using visual template matching. After determining the positional coordinates, the computing device 130 may simulate a click at the identified location to submit the login request. Thus, even if the webpage layout shifts due to the redesign of the GUI applications, the identifiers and classes of the elements change, the webpage is rendered across different browsers or resolutions, the system 131 may reliably perform automated-interaction without relying on the DOM-based technique or a code-based locator technique. In an advantageous aspect, the entire automated login workflow may be facilitated purely through visual recognition using multi-scale template matching.
[031] Figure 1b illustrates the computing device 130, in accordance with one or more embodiments of the disclosure.
[032] In an embodiment, the computing device 130 may include the system 131, which may further include a processor 132, a memory 134, a data unit 136, a display interface 138, and modules 140.
[033] In an embodiment, the processor 132 may be in communication with the memory 134. The processor 132 may be configured to execute instructions stored in the memory 134 and to perform various processes for automated-interaction of the computing device 130 with the GUI applications, as discussed throughout the disclosure. The processor 132 may be configured to initiate or stop one or more routines or a process based on the automated-interaction of the computing device 130 with the GUI applications. The processor 132 may be a single processing unit or several units, all of which could include multiple computing units. The processor 132 may be implemented as one or more microprocessors, microcomputers, microcontrollers, digital signal processors (DSPs), central processing units (CPUs), an application processor (AP), or like, a graphics-only processing unit such as a graphics processing unit (GPU), a visual processing unit (VPU), and/or an AI dedicated processor such as a neural processing unit (NPU), state machines, logic circuitries, and/or any devices that manipulate signals based on operational instructions. Among other capabilities, the processor 132 may be configured to fetch and execute computer-readable instructions and data stored in the memory 134.
[034] In an embodiment, the processor 132 may control the processing of the input data associated with classifying the test failures in accordance with a predefined operating rule or an AI model (not shown in Figure) stored in the non-volatile memory and the volatile memory. The predefined operating rule or AI model may be provided through training or learning. Here, being provided through learning means that, by applying learning techniques to learning data, a predefined operating rule or AI model of the desired characteristic may be prepared. The learning may be performed in the system 131 itself, in which AI may be performed, and/or may be implemented through a separate server/system. The learning technique is a method for training a predetermined target device using a plurality of learning data to cause, allow, or control the target device to decide or predict. Examples of learning techniques include, but are not limited to, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning.
[035] The AI model may consist of a plurality of neural network layers. Each layer has a plurality of weight values and performs a layer operation through a calculation of a previous layer and an operation of a plurality of weights. Examples of neural networks include, but are not limited to, convolutional neural networks (CNNs), deep neural networks (DNNs), recurrent neural networks (RNNs), restricted boltzmann machine (RBMs), deep belief networks (DBNs), bidirectional recurrent deep neural networks (BRDNNs), generative adversarial networks (GANs), and deep Q-networks.
[036] In an embodiment, the memory 134 may store instructions to be executed by the processor 132 for voice-based navigation, as discussed throughout the disclosure. The memory 134 may include non-volatile storage elements. Examples of such non-volatile storage elements may include magnetic hard discs, optical discs, floppy discs, flash memories, or forms of electrically programmable memories (EPROM) or electrically erasable and programmable (EEPROM) memories. In addition, the memory 134 may, in some examples, be considered a non-transitory storage medium. The term “non-transitory” may indicate that the storage medium is not embodied in a carrier wave or a propagated signal. However, the term “non-transitory” should not be interpreted as the memory 134 is non-movable. In some examples, the memory 134 can be configured to store larger amounts of information. In certain examples, a non-transitory storage medium may store data that can, over time, change (e.g., in Random Access Memory (RAM) or cache). The memory 134 may be an internal storage unit, or an external storage unit of the computing device 130, a cloud storage, or any other type of external storage. In an embodiment, the memory 134 may be configured to store the plurality of reference images corresponding to a plurality of user interface elements. In a non-limiting example, the plurality of user interface elements is interchangeably referred to herein and after as the “GUI elements”.
[037] In an embodiment, the data unit 136, amongst other things, may include routines, programs, objects, components, data structures, and the like, which may help in performing particular tasks or implementing data types. The data unit 136 may be implemented as signal processor(s), state machine(s), logic circuitries, or other devices/components that manipulate signals based on operational instructions. Further, the data unit 136 may be implemented in hardware, instructions executed by a processing unit, or by a combination thereof.
[038] In an embodiment, the processor 132 may be operably connected to the memory 134. The processor 132 may be configured to capture the visual-representation of an application user interface and display it across the display interface 138.
[039] In an embodiment, the display interface 138 may be configured to receive, process, and transmit graphical output data for rendering on a display unit. The display interface 138 may facilitate the presentation of a screenshot, rasterized frames, or any rendered graphical content generated by the computing device 130. In another embodiment, the display interface 138 may facilitate communication between the processor 132 and the display unit using one or more display communication standards, including but not limited to High Definition Multimedia Interface (HDMI), DisplayPort, embedded DisplayPort (eDP), Mobile Industry Processor Interface (MIPI) Display Serial Interface (DSI), or any equivalent display communication protocol. The display interface 138 may further be configured to manage frame updates, rendering instructions, refresh cycles, and graphical output surfaces such as frame buffers. In some embodiments, the display interface 138 may provide access to the visual-representation of the application user interface for subsequent processing, including template matching, element detection, and automated-interaction as described in the present disclosure. In certain embodiments, the display interface 138 may support communication between the processor 132 and the display unit of the computing device 130 using one or more display protocols or standards, such as high‑definition multimedia interface (HDMI), displayport, embedded displayport (eDP), mobile industry processor interface (MIPI) display serial interface (DSI), or other similar display communication technologies. The display interface 138 may further be configured to handle graphical updates, frame refreshes, and rendering instructions required for accurate visualization of the GUI applications on the display unit. The display interface 138 may be configured to receive a visual-representation of the application user interface. In an implementation, the processor 132 may provide access to a frame buffer or other graphical output surfaces. The received visual‑representation may subsequently be used for performing multi‑scale template matching and for identifying the plurality of user interface elements as described in the present disclosure.
[040] In an embodiment, the processor 132 may be configured to identify a location of at least one user interface element of the GUI applications within the visual-representation. The identification of the location may be based on visual characteristics of the visual-representation by performing a multi-scale template matching. The multi-scale template matching may be performed at the plurality of scale factors between the visual-representation and the plurality of reference images corresponding to the plurality of user interface elements.
[041] In an embodiment, the processor 132 may be configured to determine positional coordinates corresponding to the at least one user interface element of the GUI applications within the visual-representation. The positional coordinates may be determined based on the identified location of at least one user interface element of the GUI applications within the visual-representation.
[042] In an embodiment, the processor 132 may be configured to execute the automated-interaction with the at least one user interface element of the GUI applications at the determined positional coordinates.
[043] In an embodiment, the modules 140 may include a plurality of functional modules configured to perform various operations associated with the automated-interaction of the computing device with the graphical user interface (GUI). The modules 140 may be implemented in hardware, software, firmware, or any combination thereof, and may be stored within the memory or executed by the processor. The modules 140 may include, but are not limited to, a test execution module 140a, an image repository module 140b, a recognition module 140c, an action module 140d, an integration module 140e, and a reporting module 140f. The modules 140 may be in communication with the memory 134 and the processor 132 associated with the computing device 130 to perform one or more functions associated with the automated-interaction of the computing device 130 with the GUI applications, as discussed herein and after.
[044] In an embodiment, the test execution module 140a may be configured to initiate, control, and manage execution of one or more automated test scenarios based on predefined test data and visual recognition workflows. In an implementation,
[045] The test execution module 140a may be configured to execute automated test flows using a computer vision engine integrated with automation drivers such as, but not limited to, Selenium, Appium, or system-level input libraries like PyAutoGUI. The test execution module 140a may coordinate the overall test execution process, initiating screen captures, invoking the recognition module 140c, and directing the action module 140d to perform user interactions. The test execution module 140a may be executed by the processor 132 of the computing device 130 and interface with the display interface 138 to capture screen images depicting an application under test.
[046] In an embodiment, the image repository module 140b may be configured to store, organize, and retrieve the plurality of reference images, templates, and versioned visual models corresponding to the plurality of user interface elements. The image repository module 140b may be stored in a non-transitory memory of the computing device 130 and maintain the plurality of reference images or templates corresponding to at least one user interface element of the application under test. The plurality of reference images may include representations of buttons, input fields, icons, menus, and other interactive GUI applications components. The plurality of reference images may act as the primary identifiers for the GUI applications interaction, replacing traditional DOM-based locators. In certain embodiments, the plurality of reference images may comprise wireframe representations of the plurality of interface elements. The wireframe representations of the plurality of user interface elements may enable test execution during early stages of application development before complete user interface implementation, thereby supporting shift-left testing practices.
[047] In an embodiment, the recognition module 140c may be configured to perform multi-scale template matching, evaluate confidence scores, and identify locations of one or more UI elements within the visual representation of the application interface. The recognition module 140c may be executed by the processor 132 and utilize OpenCV-based computer vision techniques, including template matching and feature detection, to locate at least one user interface element on the screen during runtime. The recognition module 140c may perform pixel-level comparison of captured screen images against the plurality of reference images stored in the image repository module 140b. The recognition module 140c may perform multi-scale template matching to accommodate variations in screen resolution and element sizing at the plurality of scale factors. The plurality of reference images may be scaled at different sizes to evaluate matches at each scale. For each potential match, the recognition module 140c may calculate a confidence score based on pixel correlation. The multi-scale template matching may include evaluating the confidence score based on the multi-scale template matching for each match. The location of the at least one user interface element of the GUI applications may be identified when the confidence score exceeds a predetermined confidence threshold. For instance, the at least one user interface element may be identified when the confidence score meets or exceeds the predetermined confidence threshold, which in preferred embodiments may be at least 0.7, ensuring reliable element identification while minimizing false positive detections.
[048] In an embodiment, prior to processing, an image processing module may convert the captured screen image and the reference images to a grayscale representation, thereby reducing computational load and improving matching accuracy.
[049] In an embodiment, the action module 140d may be configured to execute the automated-interactions, including the clicks, taps, keystrokes, drag and drop operations, and gesture simulations at the determined positional coordinates. The action module 140d may be configured to translate recognized image coordinates into executable actions. Upon receiving screen coordinates corresponding to at the least one identified user interface element from the recognition module 140c, the action module 140d may generate control signals for transmission to an input peripheral of the computing device 130. The input peripheral may include, but not limited to, a keyboard, mouse, touchscreen, or equivalent user input device within the computing device 130.
[050] The control signals may produce physical input events, including clicking, typing, scrolling, and dragging operations. The action module 140d may interface with automation drivers comprising the Selenium, Appium, PyAutoGUI, or Playwright for transmitting the control signals to the input peripheral. Critically, the automated-interactions or the test-automation may be performed without utilizing DOM locators, thereby reducing test execution failures caused by user interface structural changes.
[051] In an embodiment, the integration module 140e may be configured to interface with external tools, frameworks, APIs, the CI/ CD pipelines, or any third‑party automation environment to enable seamless workflow execution. The integration module 140e may provide connectivity with continuous integration and continuous deployment (CI/CD) infrastructure. The integration module 140e may be configured to interface with tools such as Jenkins and Docker, enabling containerized test execution environments and automated test orchestration within the software development life cycle (SDLC). In an implementation, test execution data, comprising test results and execution metrics, may be transmitted over a network interface to the CI/CD pipeline for automated processing, reporting, and triggering of subsequent pipeline stages.
[052] In an embodiment, the reporting module 140f may be configured to generate output artifacts including test logs, execution reports, performance metrics, screenshots, and analytical summaries for review, debugging, or archival. In an implementation. The reporting module 140f may be configured to capture and present execution logs, screenshots, and analytics to provide traceability and test insights. Execution logs may be stored in the non-transitory memory, and screenshots may be captured from the display interface 138 during the test execution. The execution logs may be stored to document the state of the application at various test steps, and dashboards are produced for test result visualization and analysis. In an advantageous aspect, the comprehensive reporting by the reporting module 140f may enable teams to identify failures, analyze trends, and maintain audit trails for compliance purposes.
[053] In an implementation, the system 131 may provide platform-agnostic test-automation applicable across web applications, mobile applications, and desktop applications. The system 131 may generate consistent test execution results across different application types without modification to the recognition module 140c. Notably, the system 131 may enable the test-automation for the multi-platform with legacy applications rendered on the display interface 138 that lack the DOM accessibility, addressing a significant gap in traditional automation capabilities.
[054] Figure 2 illustrates a flow diagram of the OpenCV-based automation framework as a fallback mechanism, in accordance with one or more embodiments of the disclosure.
[055] In an exemplary embodiment, at step 202, the automation framework may integrate a computer vision engine (e.g., OpenCV) with automation drivers such as Selenium/Appium/OS level input libraries. When a script attempts to interact with the at least one user interface element, the OpenCV-based automation framework may rely on standard locator strategies like XPath, CSS, or ID. If these locators fail due to user interface redesigns, attributes may change, or dynamic identifiers, an automatic fallback mechanism may be activated. The fallback mechanism may use the OpenCV-based image recognition to scan the screen and visually match the stored template image of the target UI element. When a match exceeds the required confidence threshold, the system 131 may determine the exact positional coordinates from the screen and perform the test-automation for the multi-platform , making OpenCV a visual safety net that prevents test failures.
[056] At step 204, under normal circumstances, the OpenCV-based automation framework may continue using the DOM locators for speed, efficiency, and compatibility with existing automation assets, ensuring that the core automation structure remains intact. However, if DOM-based identification fails, the fallback mechanism may be implemented.
[057] At step 206, the fallback mechanism may be initiated by loading the plurality of stored reference images, capturing the current screen, and using OpenCV techniques to visually detect the element. The OpenCV techniques may include steps such as, but not limited to, template matching, multi-scale detection, grayscale comparison, and confidence scoring. Once detection is successful, the bounding box may be identified, the center coordinates may be computed, and the script may proceed with the required action. The required action may be, but is not limited to, clicking, typing, and enabling test continuity even when traditional locators break.
[058] At step 208, the OpenCV-based fallback mechanism may be integrated seamlessly across platforms. For example, Selenium may execute coordinate-based actions for web automation, Appium may handle touch interactions for mobile, and PyAutoGUI or OS-level drivers may manage desktop interactions, making the OpenCV-based fallback mechanism universally applicable.
[059] At step 210, when the fallback mechanism is triggered, the OpenCV-based automation framework may log locator failures and update locator metadata, element repositories, and stored screenshots where UI changes are detected. During subsequent runs, either the updated locator succeeds or the refreshed template image ensures accurate visual recognition. Over time, the OpenCV-based fallback mechanism may create a self-healing automation ecosystem that may significantly reduce flakiness and minimize manual maintenance.
[060] In an alternative embodiment, the system 131 may comprise a self-healing module executed by the processor 132. When the fallback mechanism successfully locates the user interface element after the DOM locator fails, the self-healing module may update the plurality of reference images in the image repository module 140b stored in the non-transitory memory. The update may capture the current visual appearance of the element, enabling continued test resilience for subsequent test executions without manual intervention.
[061] Figure 3 illustrates a process flow of an AI-based method 300 for test-automation for multi-platform with the GUI applications, in accordance with one or more embodiments of the disclosure.
[062] At step 302, the method 300 may include capturing the visual-representation of the application user interface.
[063] At step 304, the method 300 may include identifying the location of at least one user interface element of the GUI applications within the visual-representation. The visual-representation may include the screenshot, the rasterized frame, and the rendered design image obtained from the application user interface. The location may be identified based on visual characteristics of the visual-representation by performing the multi-scale template matching at a plurality of scale factors. The multi-scale template matching may be performed between the visual-representation and the plurality of reference images corresponding to the plurality of user interface elements. The plurality of reference images corresponding to the plurality of user interface elements may include the one or more versioned visual models enabling recognition of the plurality of user interface elements across the multiple application versions in the computing device 130.
[064] In an implementation, performing the multi-scale template matching may include evaluating the confidence score based on the multi-scale template matching for each match. The location of the at least one user interface element of the GUI applications may be identified when the confidence score exceeds the predetermined confidence threshold. In an implementation, the multi-scale template matching may be performed using an OpenCV library. Further, the multi-scale template matching may be performed by scaling the plurality of reference images to the plurality of scale factors and identifying a best match based on the highest confidence score derived from a pixel correlation.
[065] At step 306, the method 300 may include determining positional coordinates corresponding to the at least one user interface element of the GUI applications within the visual-representation based on the identified location of at least one user interface element of the GUI applications within the visual-representation.
[066] At step 308, the method 300 may include executing the test-automation for multi-platform with the at least one user interface element of the GUI applications at the determined positional coordinates. The execution of the interaction may include input actions including pointer gestures and keystroke input. The input actions may include performing the click, the tap, the keystroke input, the drag and drop operation, and the gesture interaction comprising the typing, the scrolling, and the dragging at the determined positional coordinates.
[067] In an embodiment, the method 300 may include enabling shift left testing. The shift left testing may be enabled by loading a design file. Furthermore, shift left testing may be enabled by converting the design file into the visual-representation. The conversion may include extracting one or more attributes comprising artboards, components, and layer structures from the design file. Further, the method 300 may include transforming the extracted one or more attributes into the plurality of reference images corresponding to the plurality of user interface elements.
[068] In an embodiment, the method 300 may include generating automated test scripts based on the determined positional coordinates and the executed interactions. The automated test scripts may be executed independently of the DOM-based locator technique and the code-based locator technique.
[069] In an embodiment, during operation, the method 300 may include capturing the screen images from the display interface 138 depicting the application under test. The method 300 may further include processing the captured screen images by comparing the captured screen images against the stored plurality of reference images in the image repository module 140b. Through pixel-level template matching, the method 300 may include identifying the best matching user interface element and determining the positional coordinates corresponding to the matched pixel regions within the screen of the computing device 130. Furthermore, the method 300 may include transmitting the control signals to the input peripheral to execute the required interaction at the determined positional coordinates. In an advantageous aspect, the method 300 may ensure continued test execution even when the underlying user interface code or attributes change, as the method 300 relies on visual-representation rather than solely on the DOM-based locator technique.
[070] The present disclosure offers a wide range of benefits over traditional automation approaches that depend on the DOM-based locators and static image matching techniques. By relying on visual recognition, the computing device 130 and the method 300 may deliver significantly improved resilience against user interface or layout changes, maintaining stable test execution even when underlying attributes or structures are modified. The visual, locator‑free approach may substantially reduce maintenance overhead, eliminating the need for frequent script updates and enabling automation in environments where the DOM access is unavailable, such as legacy desktop applications. As a result, the SDLC cycles may be accelerated because development teams spend less time addressing broken tests and more time on feature delivery, ultimately improving time‑to‑market. The enhanced reliability of the framework provided by the disclosed computing device 130 and the method 300 may boost confidence in regression outcomes, allowing teams to make informed release decisions with reduced risk. Additionally, the platform‑agnostic architecture of the computing device 130 may support consistent automation across web, mobile, and desktop applications, simplifying tooling and reducing training requirements. Further, seamless CI/CD integration in the disclosed computing device 130 and the method 300 may ensure smooth operation within DevOps pipelines, while support for shift‑left testing enables early UI validation using wireframes or design prototypes. Overall, the OpenCV-driven approach may reduce flakiness, unify automation strategies across platforms, and expand coverage to previously hard‑to‑automate systems.
[071] While specific language has been used to describe the disclosure, any limitations arising on account of the same are not intended. As would be apparent to a person in the art, various working modifications may be made to the method to implement the inventive concept as taught herein. The drawings and the foregoing description give examples of embodiments. Those skilled in the art will appreciate that one or more of the described elements may well be combined into a single functional element. Alternatively, certain elements may be split into multiple functional elements. Elements from one embodiment may be added to another embodiment. For example, orders of processes described herein may be changed and are not limited to the manner described herein. , Claims:We Claim: 1. An artificial intelligence (AI)-based method (300) for test-automation for multi-platform with a graphical user interface (GUI) applications, the method (300) comprising: capturing (302) a visual-representation of an application user interface; identifying (304) a location of at least one user interface element of the GUI applications within the visual-representation based on visual characteristics of the visual-representation by performing a multi-scale template matching at a plurality of scale factors between the visual-representation and a plurality of reference images corresponding to a plurality of user interface elements; determining (306) positional coordinates corresponding to the at least one user interface element of the GUI applications within the visual-representation based on the identified location of at least one user interface element of the GUI applications within the visual-representation; and executing (308) the test-automation for multi-platform with the at least one user interface element of the GUI applications at the determined positional coordinates.
2. The method (300) as claimed in claim 1, wherein performing the multi-scale template matching comprises evaluating a confidence score based on the multi-scale template matching for each match, wherein the location of the at least one user interface element of the GUI applications is identified when the confidence score exceeds a predetermined confidence threshold.
3. The method (300) as claimed in claim 1, wherein the visual-representation comprises a screenshot, a rasterized frame, and a rendered design image obtained from the application user interface.
4. The method (300) as claimed in claim 1, wherein the plurality of reference images corresponding to the plurality of user interface elements comprises one or more versioned visual models enabling recognition of the plurality of user interface elements across multiple application versions in the computing device.
5. The method (300) as claimed in claim 1, wherein executing the interaction comprises input actions including pointer gestures and keystroke input.
6. The method (300) as claimed in claim 1, further comprising enabling shift left testing by: loading a design file; and converting the design file into the visual-representation, wherein the converting comprises extracting one or more attributes comprising artboards, components, and layer structures from the design file and transforming the extracted one or more attributes into the plurality of reference images corresponding to the plurality of user interface elements.
7. The method (300) as claimed in claim 1, further comprising: generating automated test scripts based on the determined positional coordinates and the executed interactions, wherein the automated test scripts are executed independent of a document object model (DOM)-based locator technique and a code-based locator technique.
8. The method (300) as claimed in claim 1, wherein the multi-scale template matching is performed using an open source computer vision library.
9. The method (300) as claimed in claim 1, wherein the multi-scale template matching is performed by scaling the plurality of reference images to the plurality of scale factors and identifying a best match based on a highest confidence score derived from a pixel correlation.
10. An artificial intelligence (AI)-based computing device (130) for test-automation for multi-platform applications with a graphical user interface, the computing device (130) comprising: a memory (134) configured to store a plurality of reference images corresponding to a plurality of user interface elements; and a processor (132), operably connected to the memory (134), wherein the processor (132) is configured to: capture the visual-representation of an application user interface and display across a display interface; identify a location of at least one user interface element of the GUI applications within the visual-representation based on visual characteristics of the visual-representation by performing a multi-scale template matching at a plurality of scale factors between the visual-representation and the plurality of reference images corresponding to the plurality of user interface elements; determine positional coordinates corresponding to the at least one user interface element of the GUI applications within the visual-representation based on the identified location of at least one user interface element of the GUI applications within the visual-representation; and execute the test-automation for multi-platform applications with the at least one user interface element of the GUI applications at the determined positional coordinates.
Dated this 29th day of March, 2026
Manisha Singh Agent for the Applicant