AutomationElement child = walker.GetFirstChild(el);
using windows automation How do i simulator a left single click on Child ?
Rather than sending mouse events, you can Invoke
it through the InvokePattern
like so:
public void InvokeAutomationElement(AutomationElement automationElement)
{
var invokePattern = automationElement.GetCurrentPattern(InvokePattern.Pattern) as InvokePattern;
invokePattern.Invoke();
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With