Monkeyrunner only understands coordinates. To press the button, you pass the x, y coordinates. Unable to capture sprite on display only. It can capture the display buffer and write to the image file. Therefore, to check for a specific sprite in the entire image, you can use imagemagick compare.exe from the command line.
eg.
The output value (NCC) applies if the sprite exists in the whole image.
Thank.
source
share