OCR (Optical Character Recognition) in test automation refers to the use of technology that recognizes and extracts text from images, PDFs, and other non-editable formats, converting it into machine-readable data. This enables automated test scripts to validate and verify text that traditional automation tools cannot access, such as text embedded in images or scanned documents, making it especially useful for applications with dynamic or complex content.