I need for get UIelements using "UIautomation" technology from another programms in windows OS. Some programms has "chrome-like" browsers for content rendering. The methods are get element (like c# AutomationElement.FromPoint / FindAll) return browser element with ClassName "Chrome_RenderWidgetHostHWND" and Name like a "Chrome Legacy Window". But i need the content elements in that browser.
I found out that, programm "Accessibility Insights" can do it!
- Run application, "Microsoft Teams", for example
- Run "Accessibility Insights"
- Move mouse on "Microsoft Teams", we get "Chrome Legacy Window"
- After any mouse click (left/right) on target programm ("Microsoft Teams") provoke rebuild UI tree
- Then UIautomation technology can get all inner UI elements in browser.
"Accessibility Insights" source code is https://github.com/microsoft/accessibility-insights-windows I studied it very carefully, but not found code, that provide rebuilding (or, initializing?) inner UI elements.
Any one can help me? What i should to do for win my task - get inner UI elements in chrome-like browsers at another programm on windows OS?
If you've read to the end, thank you