OCR Support in AIQ Workflows
Last reviewed: September 21, 2026
Use OCR only when text cannot be accessed through structured page, API, or document data. OCR is useful for image-based validation but should not replace stable selectors or APIs.
Recommended guidance
- Prefer DOM, API, database, or extracted document text when available.
- Use OCR for image/PDF/screenshot content that has no structured source.
- Keep tolerances realistic because OCR can vary by image quality and font.
Validation workflow
- Capture or provide a clean image source with sufficient resolution.
- Limit the OCR region to the smallest area that contains the expected text.
- Normalize extracted text before comparing it with expected values.
- Use assertions that tolerate acceptable whitespace or punctuation differences.
- Review failures with the original image attached so false negatives can be diagnosed.
Note: OCR-based tests can be fragile. Use them as a fallback or targeted validation, not as the primary locator strategy.
Last updated: September 21, 2026
If you have feedback on this topic, contact documentation@appvance.ai.