There are two ways to invoke a context menu:
the Invoke-UiaControlContextMenu cmdlet
$element | Invoke-UiaControlContextMenu | Get-UiaMenuItem -Name ....
and the InvokeContextMenu method shown here the Control property.
$element.Control.InvokeContextMenu() | Get-UiaMenuItem -Name ....

Last edited Apr 8, 2014 at 5:23 PM by apetrovskiy, version 3

Comments

No comments yet.