How to iterate through a tree level item list within a Windows application?


I’ve got an automation case that I can’t seem to solve withing Intelligent Automation Cloud Business.

I have a Windows application which holds a list within a tree view. Within that tree view is a node called “AML”. I want all items within the AML node to be included in a while loop but I don’t know how to solve this. The inspector tells me that the object code for the AML tree item is:


The code for all underlying items seem to be unique and look something like this:

.TreeItem[name="142761 | 2018-10-10 00:00:00 | TESTSSON TEST | 92722288818 | 301112671 | 10404,0000 | EUR | |"]

In the end of my AML tree level item comes another branch on the same level as AML.

MicrosoftTeams-image (5)

I’m thinking if I can get IAC to iterate through the tree level items within the AML node until it reaches the next node. I have a feeling that I maybe need to use groovy script to accomplish this, but I have no knowledge of this code language yet.

Anyone who can help? Thanks!