I have a requirement in a web application where there are a large number of folders displayed in a folder tree. finally need click the specific folder

I have a requirement in a web application where there are a large number of folders displayed in a folder tree.

My goal is to click a specific folder, but I’m facing the following issues:

  • The folder list contains many folders, and manual scrolling is not practical.

  • There is no search option available to search for a folder.

  • After refreshing the application, it does not return to the default/top position. Instead, it remains at the previously opened folder.

  • Because of this behavior, I cannot reliably scroll to or locate the required folder.

Has anyone faced a similar issue?

What is the best approach in UiPath to click a specific folder in this scenario? Are there any activities or techniques (such as Find Children, selectors, keyboard navigation, or another approach) that can help identify and click the required folder even when it is not currently visible?

i have attached the screenshhot can you please and let me know asap.

Hi @swetharedddy234,
You can try with the below steps once to resolve your issue:

  • Inspect the folder element and check whether the folder name appears in the selector.
  • Use a dynamic selector such as:
  • Then use Check App State / Element Exists followed by Click.

If the folder tree supports keyboard navigation:

  • Click anywhere in the folder tree.
  • Use Ctrl + Home to move to the top.
  • Use Send Hotkey (Down Arrow) in a loop and compare the selected folder name until the target folder is reached.

Thank you

Thank you @Jasmin_Bar

Welcome @swetharedddy234 .
If you get your solution then you can mark this as your solution.

Tnak you

you can also use Javascript to navigate through the folder list, you need to write the js code and need to use the “Inject Js” activity it will cut down most of your steps in UiPath itself. Hope this will help you. Thanks.

I will Try @Ashish_Parjapati

@swetharedddy234

Welcome to the community

  1. First always use a mouse scroll and scroll to top of the folders always so that whereever it is, the position is reset to start
  2. Then use another mouse scroll with to element option to scroll till the required folder is found

the to element used can be the dynamic one with innertext as variable so that you can pass the folder you want to scroll to..this ensures scroll works till the folder needed always

alternately if all folders are loading even if not visible then we dont need these scrolls instead can use simulate /chromium api clicks to directly click on them…or if you want them to be visible then can use hover activity/focus activity by passing dynamic selector and it would auto scroll till that point

cheers

Hi @swetharedddy234

Perhaps you should use the unopened folder icon as you Click target (if the folder opens by clicking it).
And then a Check App State to see if the required folder is present.

This will limit the amount of folders to click through, as you only need to click the ones with subfolders.

Also you could use the icon as an indicator for if there are any more “levels” in the subdirectory, as the icon changes from an arrow pointing right, to an arrow pointing right and down when it’s open.

Regards
Soren

@swetharedddy234 Welcome to community!

First thing check URL after clicking manually on target folder, whether the URL containing this folder name, Let say,
https://Dashboardpage//yourfoldername
If it looks like this then directly use navigate url in that pass this url and at last you can pass the direct your foldername variable.
https://Dashboardpage//{strFoldername}

If you find this helpful, please mark it as solution.
Happy Automation

Hi @swetharedddy234,

What is the next step after selecting the folder? For example, do you need to upload a file into it?

If so, explore the application to see if there are alternative options under Utilities or another menu that let you browse directly to the folder instead of navigating the tree.

Also check whether:

  • There is an Expand All option on the folder tree.
  • The Find Children activity can retrieve all folder nodes, allowing you to locate and click the required folder without scrolling. However, expanding each folder one by one, checking it, and repeating for the next folder is not reliable and time consuming.
  • You can try UiPath ScreenPlay, as it may work better with this type of scenarios.

Thanks!