Using AccessibilityObject DoDefaultAction instead of Click (x,y)
Our application uses Infragistics UltraWinToolbars, version 5.2.20052.27. Several of the threads I've seen in this forum use the technique of calculating an x, y location in the toolbar for a particular button, then calling Click. One of our developers suggested using the AccessibilityObject.DoDefaultAction method of the tool (toolbar button) to accomplish this instead.
So far, this seems to work well. Does anyone know of any caveats to this approach?
Re: Using AccessibilityObject DoDefaultAction instead of Click (x,y)
You can use this approach if it works for you without problems. However, sometimes clicking on controls like in this way does not raise their events and the clicks can be handled incorrectly by the tested application. When TestComplete clicks on the controls using their coordinates, it simulates the user actions and therefore this problem does not arise.