How to use FindFirst() method if I already know the name of the element

Copper Contributor

I am using IUIAutomation interface of COM to write an Automation Client Application to automate a VFP (Visual FoxPro) app.  My question is, since I already know the name of a UI element, if and how I can directly use FindFirst() method of IUIAutomationElement interface to identify the UI element, rather than going through the Automation Tree, such as starting from the root element which is desktop.

 

Look forward to your help!

0 Replies