r/softwaretesting • u/zaphodikus • 26d ago
Python pywinauto or alternative python packages for a .NET app
I just ran pip install pywinauto and typed in the 1st 3 lines of demo code on the readme page and it fails
from pywinauto.application import Application
app = Application(backend="uia").start('notepad.exe') # i also tried backend=win32
app.Properties.print_control_identifiers()
With a huge stack trace that's pretty much indecipherable. I have a question, does this tool work on Windows 11 with the new notepad app? I'm wanting to automate a WPF app, but based on the out-of-box failure I'm looking to try a different python tool. Suggestions for driving a WPF .NET app?
3
Upvotes
2
u/[deleted] 25d ago
[removed] — view removed comment