How to list all the elements of an application?
<p>I'm trying to click a button on a windows application from other application. Basically, I want to click app B's button from app A's code.</p>

<p>I can use winapi findWindow to get a handler. The problem is that I have no idea the name of the button on the app B. Is this possible to list all the names or ids of an application?</p>

<p>I'm using c# to make it happen.</p>
