Sometimes it is desirable to test explicitly that a certain text string did appear on screen.
While screenshot comparison does implicitly test the screen text content, it would be nice in some cases to explicitly check conditions on the actual text that was shown on-screen. In fact, this would prevent the test from passing if an incorrect screenshot is inadvertently used in the test.
It could be as simple as an API call to get the list of all the text events.
Sometimes it is desirable to test explicitly that a certain text string did appear on screen.
While screenshot comparison does implicitly test the screen text content, it would be nice in some cases to explicitly check conditions on the actual text that was shown on-screen. In fact, this would prevent the test from passing if an incorrect screenshot is inadvertently used in the test.
It could be as simple as an API call to get the list of all the text events.