How does Snoop find UI elements?

Nov 3, 2011 at 3:57 PM

I'm attempting to use UI Automation to develop automated tests.  I'm finding that some of my controls are invisible to my code and Inspect (a utility similar to Snoop in function).  Snoop, on the other hand, has no problem seeing these controls.  If I know how Snoop finds them, perhaps it will help me get around this impasse.  Thanks.

P.S. I have discovered that by moving my mouse over the control or clicking on it, it suddenly becomes visible to Inspect and my code.  This does not help if one wants to do automated testing, though.

Coordinator
Apr 21, 2012 at 1:29 AM

Sorry for my late reply ... I'm just now getting around to some posts that have escaped my attention.

In regards to your issue, please note that Snoop is open source ... feel free to download the source code and take a look yourself at how it works ... and how it may be the same and/or different from your application.

You can download the code from here.