GUI automation: SIKULI or AutoPy? 

Joined:
04/07/2009
Posts:
49

January 24, 2010 06:29:11    Last update: January 24, 2010 19:31:22
SIKULI is Jython. AutoPy is Python. Both use bitmaps to find areas of interest. It seems that SIKULI comes with an IDE but AutoPy doesn't.

A sample SIKULI script captured from the project site:


A sample AutoPy script from the project site:
import autopy
def where_is_the_monkey_i_say():
    """Look for the monkey. Tell me if you found it."""
    monkey = autopy.bitmap.Bitmap.open('monkey.png')
    barrel = autopy.bitmap.Bitmap.open('barrel.png')

    pos = barrel.find_bitmap(monkey)
    if pos:
        print "We found him! He's at %s!" % str(pos)
    else:
        print "There is no monkey... what kind of barrel is this?!"

where_is_the_monkey_i_say()


[ Comment  | Tags ]