Is it possible to capture the text that is rendered on screen from any app using an app or adb, for the purposes of automated testing, or accessibility?
My only alternative is to take a screenshot and run it through an OCR application.
Is it possible to capture the text that is rendered on screen from any app using an app or adb, for the purposes of automated testing, or accessibility?
My only alternative is to take a screenshot and run it through an OCR application.
for the purposes of automated testing
If this is your UI, write instrumentation tests using Espresso, which has result matchers for checking the text of TextView
and its subclasses.
If this is not your UI, and you are performing integration testing, write instrumentation tests using UI Automator, which has some ability to get text from TextView
and its subclasses.
for the purposes of... accessibility