Partially implementation of IDumper. This is only a helper that helps to make dumper work with local nodes just like with remote nodes. The local nodes is an implementation of
AbstractNodelocally with fixed hierarchy data in arbitrary data type. In a word, this class is not going to crawl hierarchy from target app, but to perform like a ordinary dumper.
dict: json serializable dict holding the whole hierarchy data
Locally implementation of hierarchy interface with a given dumper and all other behaviours by default. As all information can only be retrieve from a fixed UI hierarchy data created by dumper and all UI elements are immutable, this class is called frozen hierarchy. With the help of this class, only very few of the methods are required to implement. See
AbstractNodeor poco-sdk integration guide to get more details about this.
This class makes it much easier to integrate poco-sdk and optimizes performance in some situations, but it is not sensitive enough to the changes of UI hierarchy in the app. For example, you should call
selectexplicitly to re-crawl a new UI hierarchy when some UI elements changed on screen. Otherwise you are using attributes that are out of date.
Get the UI hierarchy with its origin structure and attributes, then store the structure and attributes into a json serializable dictionary.
Returns: dict representing the hierarchy structure. Structure specification refers to
get node attribute
select nodes by query
setAttr(nodes, name, value)¶
set node attribute