Hi All,
I use:
Code:
public static AutomationElement FindElementByProcessId(int pid)
{
AutomationElement element = null;
PropertyCondition conds = new PropertyCondition (AutomationElement.ProcessIdProperty, pid);
while (element == null)
element = AutomationElement.RootElement.FindFirst(TreeScope.Children, conds);
return element;
}
to find myProcess.
how do I define to find a text edit box which has a fixed Id (1300).
I find this number using Spy++
regards,
ger