views:

9

answers:

0

Hi All,

I am trying to use UI Automation Framework to monitor button clicks in my WPF app.I got hold of the individual buttons in my applications, but it seems that I can only call the Invoke method on my button.

So my question is can the UI Automation Framework be used to monitor clicks on buttons or is it only to simulate the clicks?

[Update]
I figured out how to monitor clicks on buttons by using Automation.AddAutomationEventHandler() on InvokedEvent. But these will monitor only button clicks and not movement in a slider bar, clicking on a checkbox etc... How can I monitor these?

Thanks
jbsp72