Prameya R Hegde
Prameya R Hegde

Reputation: 11

Pywinauto not recognizing window if backend='uia'

I am using pywinauto for Automating CANDelaStudio application. In that when I clicked on export button new Save As window appear. I wanted to connect it with backend="uia". but if I use "uia" backend I get "pywinauto.findwindows.ElementNotFoundError". if I use backend "win32" is working. but I want to use some check boxes in Save As window which is not visible in "win32" backend. Please help me in this!!!

Upvotes: 1

Views: 1544

Answers (1)

Vasily Ryabov
Vasily Ryabov

Reputation: 10000

"win32" and "uia" backends provide different hierarchy. In "win32" all windows are top level, while in "uia" auxiliary windows are children of main window. Just call .dump_tree() for main window specification or try to use py_inspect which can switch backend.

Upvotes: 0

Related Questions