Forum Discussion
Hi,
Your best bet would be to talk to developers and ask them to provide unique and meaningful identifiers for both key and value panels (e.g. 'key_1_1000' for the key and 'val_1_1000' for the value) so you can quickly and reliably locate them.
If this is not an option, than I am afraid that the only option for you is to look for the key panel by its content text (exact match) and then implement some logic to find matching value panel (e.g. "for the found key panel, navigate two levels up, then look for the child panel with the next index and look there for the panel with the same index that the found key panel has").
Obviously, the latter approach requires more time for the implementation and is less reliable and this may be a good argument in your talk to developers and management when they ask you why development should spend their efforts on this.