In more complex scenarios (typically involving multiple applications) it is sometimes not possible to automate all the processes involved.
In such situations it may be an acceptable workaround to check if a certain sub-image is on the screen to decide whether an activity failed or not, or to decide whether to take specific actions or not.
Here is an example of this which uses an external Java program called
find_image_in_image (download find_image_in_image) for the image search:
Example output if the sub-image has been found:
Example output if the sub-image has not been found: