Blog
Read the latest blogs
Find tutorials, guides and use case examples in the
Learning center
This feature is Experimental and may change based on user feedback and testing. Share your thoughts via our chatbot to help us improve it.
The AI Vision Validate Block automates the validation of visual elements within an application interface, ensuring key UI components are correctly displayed across different screens, environments, and devices.
Note: AI accuracy is not guaranteed, as it relies on probabilities and the daily performance of OpenAI’s technology. While we strive to provide the best experience, occasional inaccuracies or errors may occur due to the inherent limitations of the technology itself. For more details, please refer to OpenAI's documentation.
Fully expanded, the AI Generate Block shows the following properties:
The green input connector in the header is used to trigger the block to start executing.
The green output connector in the header triggers when the block execution is complete.
The title of the block (“AI Vision Validate”) can be changed by double-clicking on it and typing in a new title.
This parameter allows the block to connect with the File Output of other blocks, ensuring seamless integration with image-processing workflows.
Users can choose between two types of sources for image validation:
This field is used to specify the criteria for validation, detailing what elements the block should look for in the provided image.
Examples include verifying the presence of a button, checking if a specific label is visible, or ensuring a UI component is rendered correctly.
Provides feedback on the validation results:
If the specified UI elements are found as expected, the block confirms successful validation.
If there are discrepancies, the block explains what was expected versus what was detected (e.g., "Button missing on checkout page").
This output is triggered when the validation could not be completed successfully. Possible causes include poor image quality, ambiguous UI components, or unsupported formats.
If the 'Default Timeout' property checkbox is not selected, then the timeout value is 30 seconds. If the 'Default Timeout' property checkbox is selected, then the 'Default timeout' value selected in the flow settings will be applicable.
The maximum time spent validating the element before giving up and triggering the Not Valid connector (see above).
Note: All cases have a “global timeout” that can be configured in the “Settings” panel. This is unrelated to the timeout of a single building block. However, a running case will automatically be cancelled if it runs for longer than the global timeout.
For more information on best practices and guidelines for using AI blocks, please refer to the AI Block Usage Guidelines.
Created 13.03.25
©2024, Leapwork. All rights reserved.