2

I'm having trouble locating UIa elements in the Teams desktop app. There is no problem on the development station with windows 10, but on vm ui elements are not recognized by pywinauto and inspect.exe. What could be causing the problem?

enter image description here

All the controls are on the local machine and there is no problem with identification. On the server only sees the main window.

If I run the teams application with the parameter --force-render-accessibility, I find everything in inspect.exe, but the pywinauto library is not able to find objects (it takes a lot of time or doesn't find the controls) %APPDATA%\ Microsoft \ Teams \ Update.exe --processStart Teams.exe --force-renderer-accessibility

Mican
  • 73
  • 5

1 Answers1

0

Any remote desktop software doesn't passthrough the UI info from remote OS. I'd recommend reading the Remote Execution Guide which contains all known recipes for this topic.

Vasily Ryabov
  • 9,386
  • 6
  • 25
  • 78
  • but the code runs on vm not from the local machine – Mican Mar 05 '22 at 08:26
  • Oh, that might be something with MS Teams settings on the VM. No ideas. But all MS Office apps have its own COM DIspatch interface that could be used from Python using `win32com.client` module from pywin32 (`pip install pywin32`). – Vasily Ryabov Mar 09 '22 at 12:58