RobilityAI®

Header Example

Robility® Forum

Unleash your potential – connect, collaborate, and automate with our powerful solutions.

DesktopAutomation U...
 
Notifications
Clear all

[Sticky] DesktopAutomation UIA3

4 Posts
2 Users
0 Reactions
6 Views
Posts: 41
 Hiba
Robility Support Team
Topic starter
(@iffhiba)
Member
Joined: 2 years ago

I have a large number of folders and subfolders in my application, and I’m using the “Find Children” activity with the “Descendants” scope. It takes a long time to iterate through everything. Is there a way to optimize this?

Reply
3 Replies
Posts: 41
 Hiba
Robility Support Team
Topic starter
(@iffhiba)
Member
Joined: 2 years ago

Yes, you can significantly improve performance by using the “Children” scope instead of “Descendants.” Here's how:

  1. Set the scope to “Children” in the Find Children activity to retrieve only the first level of folders, not the entire hierarchy.
  2. Use Item.AutomationName to identify the folder containing the policy number.
  3. To fetch subfolders and files inside the identified folder, use another Find Children activity with the scope still set to “Children.”
  4. In the ExecuteBy property, append the following:
  5. <uia name='Item.AutomationName'/>

This ensures only the contents of the matching policy folder are fetched.

  1. Continue this step-wise approach to go deeper into the folder structure. You can add more elements as needed:
  2. <uia name='Item.AutomationName'/> <uia name='Item1.AutomationName'/>

This will help locate a specific subfolder within the identified policy folder.

Reply
1 Reply
 Hiba
Robility Support Team
(@iffhiba)
Joined: 2 years ago

Member
Posts: 41

Posted by: @iffhiba

Will this approach improve processing speed?

 

Reply
Posts: 41
 Hiba
Robility Support Team
Topic starter
(@iffhiba)
Member
Joined: 2 years ago

Yes, users have reported that this optimized method processes a large number of folders in under a minute, compared to the significantly longer time taken using the “Descendants” scope

Reply