ngladysz
13 years agoOccasional Contributor
Clicking a UIA object
Our AUT has a custom control that is like a grid and manually draws it's cells on a "render surface". These cells are completely custom and do not inherit from any Microsoft library classes (i.e. FrameworkElement). We have a need to automate interactions with this custom control so we decided to look into AutomationPeers. I have tested this approach and TestComplete is able to recognize the custom UIA objects; however, when I try to click one of the cells in this custom grid it simply clicks the middle of the window. The AutomationPeers for these cells override GetClickablePointCore and provide a correct point to be clicked for that object, but it still doesn't click in the right place. Is this a known issue?