Using the Spy tool I am able to track the TreeItem object, however, when I run this script on an Agent it does not detect it.
In my test, I run my AUT as another user, using Windows' "run as different user" feature. I thought maybe this was why I was unable to track the TreeItem object, however I was still able to Spy it when Spy was ran as a user with administrative priveleges.
My agent is being ran as an administrator, so I cannot understand why it is unable to detect the TreeItem object.
The path to the specific TreeItem is shown in the screenshots below which I have just cooked up:
Spy being ran as normal user

Spy being ran as administrator

I have attached two Snapshots of the /form, one which the agent captured using `Ranorex.Snapshot("/");` and the other using Spy as an administrator
Does anyone have any ideas?