Fallback UI Element Locators for Resilient Automation Playback
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Automation programs fail to locate target user interface (UI) elements due to changes in software application user interfaces, such as updates or dynamic elements, leading to unsuccessful automation processes.
Innovation Solution
Implementing fallback element locators, including candidate XPaths generated by machine learning models, to identify UI elements during playback, and utilizing native systems to create and prioritize fallback XPaths based on UI element interactions during design time.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If automation programs use fixed UI element locators recorded during design time, then automation execution is simple and fast, but automation fails when UI changes occur
Solution Approach 1:
The system performs preliminary actions by generating multiple candidate fallback element locators during design time before automation playback. These candidate locators are stored and ready to be used if the primary locator fails, preventing automation failure due to UI changes without adding complex runtime decision-making
Solution Approach 2:
The system changes the parameter of element locator from a single fixed value to multiple candidate values with different priorities. When UI changes occur, the system tries alternative locator parameters in priority order until a successful match is found, thereby adapting to UI variations while maintaining a structured approach
2Reliability
If multiple fallback element locators are generated and stored, then automation resilience to UI changes improves, but system complexity and resource usage increase
Solution Approach 1:
The system applies local quality by creating candidate fallback element locators specifically for UI elements that are critical to automation success. Not all UI elements generate fallback locators - only those identified as important during design time, thereby reducing the total number of locators stored while maintaining resilience for critical operations
Solution Approach 2:
The system uses partial action by generating a limited number of candidate fallback locators (e.g., top 3-5 candidates) rather than exhaustively generating all possible locators. This provides sufficient resilience for most UI changes while avoiding the overhead of storing and processing an excessive number of candidates
3Adaptability or versatility
If candidate fallback locators are generated using machine learning models, then automation can adapt to UI changes, but processing time and computational resources increase
Solution Approach 1:
The system performs the computationally intensive machine learning-based fallback locator generation during design time rather than during playback. This preliminary action ensures that all adaptive capabilities are prepared in advance, so during actual automation execution, the system only needs to evaluate pre-generated candidates, minimizing runtime overhead
Solution Approach 2:
The system uses cost-effective and efficient techniques for generating fallback locators, such as template-based approaches or simple pattern matching for common UI elements, rather than always using complex machine learning models. This balances adaptability with computational efficiency, especially for frequently updated or simple UI elements
Data Source
AI summary
Systems and methods for locating target user interface (UI) elements that automation programs intend to interact when performing automation programs. The automation programs can, for example, operate to perform actions as part of a workflow process to complete tasks. Advantageously, when UI elements referenced in automation programs cannot be located based on information recorded about the UI elements during the phase of designing the automation programs. One approach can involve creating candidate fallback element locators (e.g., XPaths) for UI elements during the automation program design phase. If an automation program fails during playback, one or more of these candidate fallback element locators can be used to locate a target UI element. In another approach, when an automation program playback fails, portions of a software application's user interface code can be identified and used as inputs to machine learning model(s), which can generate candidate fallback element locators that can used to locate target UI elements.


