1. A method for providing user interface information related to a target user interface hierarchy associated with one or more computer programs, wherein the target user interface hierarchy comprises a plurality of user interface elements, the method comprising: receiving a query requesting user interface information of the target user interface hierarchy; responsive to receiving the query, traversing a plurality of the user interface elements of the target user interface hierarchy via a plurality of programmatic calls, wherein the traversing collects user interface information from the plurality of the user interface elements of the target user interface hierarchy according to parameters specified in the query; and based on the user interface information collected during the traversing, returning results of the query.