Guidance in iterating in tables within Windows application

Hi Community,

Greetings!

Hope to be guided through iteration of data within a table or list of values in windows application.

As you can see in the image, I need to iterate through the list of files in each folder.

However, there is no Name property that I can extract to simply get those values: “PR-SFM-02876 - HA - Applicant Correspondence - 11/12/2024 - PRELIMINARY ELIGIBILITY LETTER -”.

Please help … :pray:

Massive thanks,
Dante

Without access to the application it’s impossible to give an exact answer, but looking at the ui in the screenshots, the way i would attack this is by

  • add a Windows.Get Element with max set to 20 or whatever makes sense for you, that gets each “folder”
  • Add a Click Element inside the first Get Element to “expand” the “current” element and make sure you don’t click on the first hit ( use Index ) if that is always expanded by default
  • then add another Windows.Get Element inside the first Get Element, and again set Max to 20 or whatever makes sense for you to get each child element. hopefully that is a panel or table or something you can iterate “for each row”.

Depending on the structure of the inner rows, you can get the direct element that has the filename in the second get element, if not, add 3rd Windows.Get Element inside the 2nd, to “grab” the element with the filename

Hi Allan,

Will try to follow this guide you provided. Appreciate :pray:

Massive thanks,
Dante

Hi Allan,

I tried as you instructed. However, adding Windows.GetElement within Windows.GetElement, the inner Windows.GetElement has no other option but Text Static, as can be seen image below.

If I rather have one folder, say, Static expand first via a click action, then have a separate Windows.GetElement, then add inside another Windows.GetElement, but I’m not seeing filename property from which to extract the files.

Thanks,
Dante

If there is no tree structure for the ui elements, then you need to create a loop, where you inspect each element and find the ones representing a file, then click the next folder and repeat

Assuming each file is actually an ui element?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.