Skip to main content

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.

  • 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

  1. Capture or provide a clean image source with sufficient resolution.
  2. Limit the OCR region to the smallest area that contains the expected text.
  3. Normalize extracted text before comparing it with expected values.
  4. Use assertions that tolerate acceptable whitespace or punctuation differences.
  5. 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.