1. A computer-implemented method for providing a custom view of a set of user-interface elements (UI elements), the method comprising: representing the UI elements as a raw tree structure having a plurality of nodes, the nodes corresponding to the UI elements; identifying a subset of the nodes that satisfy one or more conditions; and communicating to a requesting component a representation of all or some of the identified nodes.