When comparing PyAutoGUI vs SikuliX, the Slant community recommends SikuliX for most people. In the question“What are the best generic (image based) GUI functional test frameworks?” SikuliX is ranked 3rd while PyAutoGUI is ranked 4th. The most important reason people chose SikuliX is:
SikuliX is cross-platform and available on the most popular systems (Windows, OSX and Linux).
Ranked in these QuestionsQuestion Ranking
Pros
Pro Python package with few system dependencies
Requires scrot but else it's almost pure Python code.
Pro Cross-platform
Pro Cross-platform
SikuliX is cross-platform and available on the most popular systems (Windows, OSX and Linux).
Pro Simple text recognition
SikuliX uses Tesseract OCR to have basic text recognition which can be used to search text in images.
Pro OpenSource
It's free and open source with the source code hosted on GitHub.
Pro Simple IDE
Pro Can run in different languages
Allows running scripts in Jypthon (Python) or JRuby (Ruby) and has also an API.
Cons
Con Only pixel-perfect image matching
When locating element by image comparison, it must be pixel perfect, meaning that any platform/machine change in the UI even very minor will break your script.