添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

I am automating a third party application with pywinauto. I am able to see some specific elements and their texts when using e.g. inpect.exe, but when looking at pywinauto's print_control_identifiers these elements are not included at all (marked with red in the image between the two green ones).

print_control_identifiers VS Inspect.exe (red ones are missing)

Is it somehow possible to see these elements with pywinauto?

In this particular case I need to check for example if an element containing the text "Varoitus!" exists, but for some reason pywinauto can't see it at all.

"uia" backend is definitely used, from this point of view it's OK. But sometimes pywinauto output and Inspect.exe tree are a little bit different. I guess it's because we use FindAll method from UI Automation API for performance reasons while Inspect.exe uses RawViewWalker object. We implemented this option in atspi branch of pywinauto but it will be released significantly later and it contains some other serious improvements that partially break backward compatibility. Vasily Ryabov Apr 8, 2021 at 19:02 OK, thanks for the answer @VasilyRyabov! I will figure out some workaround for my use case. Scubadiver Apr 9, 2021 at 6:55

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question . Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers .