Anybody know of any Python bindings for Microsoft UI Automation?
http://msdn.microsoft.com/en-us/library/ms747327.aspx
without having to use IronPython. I am aware of the excellent pywin32 work, but Microsoft UI Automation is supposed to be the successor of the Active Accessibility layer, which I have been using on Windows XP. I need to migrate of the "Active Accessibility" functionality (event triggers on open windows, focus controls, etc.) to a Windows 7 platform.
Thanks!
Take a look on Cobra
Cobra WinLDTP is based on Linux Desktop Testing Project - http://ldtp.freedesktop.org LDTP works on Windows/Linux/Mac/Solaris/FreeBSD/NetBSD/Palm Source, yes its Cross Platform GUI testing tool.
They claimed it based on Microsoft DLL's (.NET3.5) - (Interop.UIAutomationClient.dll, UIAComWrapper.dll, WUIATestLibrary.dll)
I manage to use it with python for testing HTMLlayout app.
This maybe what you would like to use.It allows you to call UIAutomation using python and what you need to do is just update the demo file.https://github.com/chengzi/PyUIAutomation
来源:https://stackoverflow.com/questions/5487263/python-bindings-for-microsoft-ui-automation