A Python UIAutomation module for Windows
The uiautomation module
This module is for UIAutomation on Windows(Windows XP with SP3, Windows Vista, Windows 7 and Windows 8/8.1/10). It supports UIAutomation for the applications which implmented UIAutomation Provider, such as MFC, Windows Form, WPF, Modern UI(Metro UI), Qt(Partly), Firefox(version<=56 or >=60), Chrome and Electron based apps(require –force-renderer-accessibility command line parameter).
uiautomation1.x supports py2, py3 and doesn’t depend on any third package.
uiautomation2.0+ only supports py3 and depends on comtypes and typing(Python3.5+ built-in).
uiautomation2.0+ is not backward compatible with early versions. See API changes.
You can install uiautomation by “pip install uiautomation”. After installation, a automation.py that calls uiautomation will be in ‘C:PythonXXScripts’. You use this script to traverse UI controls.
Run ‘C:PythonXXScriptsautomation.py -h’ for help.
Run demosautomation_calculator.py to see a simple demo.
On Windows 8/8.1, to automate a Metro