How to Identify Dynamic Yellow Highlighted Rows and Click Corresponding Checkboxes in a Desktop Application

In the attached screenshot, I need to click all the checkboxes corresponding to the rows highlighted in yellow. These yellow-highlighted rows are dynamic and change at runtime for each Loan Number.

I tried using the Get Attribute method in UiPath to identify the yellow-colored rows, but I was unable to detect the yellow color successfully.

Could you please provide the correct solution, preferably with an example XAML workflow?

This is a desktop application, and the same process was previously implemented in Blue Prism using Surface Automation. Currently, we are working on a Blue Prism to UiPath migration project, so I am looking for the best UiPath approach to handle this scenario.

Hi @sankar.myilsamy

Try this approach
1 Use Find Children on the document list/grid.
2. Loop through each row element.
3. Use Get Attribute to retrieve properties such as:
* aaname
* role
* idx
* innertext
* class
4. Check whether the row exposes a state/property indicating selection/highlight.
5. If highlighted:
* Find the checkbox inside that row.
* Click it.
*
If solution works for you please mark as solution

Thanks
Nishi

Hi @sankar.myilsamy

a better approach is to use computer Vision/Image-based automation to identify the yellow-highlighted rows at runtime and then click the corresponding checkboxes. If the application supports table/grid accessibility, another option is to extract row data and use business rules instead of relying on color detection. For a Blue Prism Surface Automation migration, Computer Vision is usually the most reliable approach.

Happy Automation

This is a desktop application. Could you please explain the solution step by step instead of sharing the XAML file? I’m finding it difficult to understand the XAML file you shared. A detailed explanation would be very helpful.

I tried using all the attributes you suggested. However, some attributes return empty results, and some attributes contain above screen error result.

Hi @sankar.myilsamy

Try this

  1. Use Find Children to get all visible rows.
  2. Loop through each row.
  3. Use Take Screenshot on the row.
  4. Check whether the screenshot contains the yellow highlight color (RGB detection).
  5. If yellow is found, click the checkbox in that row.

Thanks

Hi @sankar.myilsamy,

Could you check whether the aastate attribute differs between a yellow-highlighted row and a normal row? Also, under what conditions do the rows become highlighted?

Thanks

@sankar.myilsamy

Use CV or image based click and use the yellow area on left plus check box and run it in loop till it fails once fails that means all yellows are checked else it would try to check

Screenshot 2026-06-10 at 10.25.17 AM

this is what you need to use as image

you can use cursor position offset to click on checkbox

cheers

Hi @sankar.myilsamy

Using CV you can’t determine the background colour, you can refer this document might help.

Can We Identify Color or Image Color Using UiPath?