@Ulhas_Guttikar
Yes, it is possible to read the color of cells in a table on a web page using UiPath. Here are the steps you can follow to do this:
Use the “Get Table” activity to extract the table data from the web page. This activity will return a DataTable object containing the table data.
Use a “For Each Row” loop to iterate over the rows in the DataTable. Inside the loop, you can use the “Get Cell Color” activity to retrieve the color of a specific cell in the table.
Use a “Write Line” activity to output the cell color to the log or to a variable. You can also use other activities, such as “Set Text” or “Type Into”, to enter the cell color into a text field or other element on the web page.
Here is an example of how this might look in a UiPath workflow:
Get Table activity (to extract the table data)
For Each Row loop (to iterate over the rows in the DataTable)
Get Cell Color activity (to retrieve the color of a specific cell)
Write Line activity (to output the cell color to the log)
End For Each Row loop
Keep in mind that you will need to specify the column and row indices for the cell that you want to retrieve the color for. You may also need to use additional activities, such as “Find Element” or “Click”, to navigate to the web page and interact with the table.
i am sure UiPath have solution to read the color. please try the suggestion from our forum members on get color code or get RGB value to identify the color of the UI elements.
wanted to share my suggestion on the problem you posted.
Could you check in what scenario we are getting the color of the table rows. in my opinion i dont think the application will not put color randomly for the records there should be some reason it is applying red color or pink color or no color due to some conditions. there is column i could see in the screenshot is like un restricted for red and if it is specific project there is no color and some other scenario for pink color.
Check with your business on what scenario we are getting colors so that it would be helpful for you to build robust automation. thanks.
Thanks for the suggestion, the red color has already been taken care, the pink color is Bug in the system, which can occur randomly. we have checked all possible scenarios but color is the only option.
ok got it then no other go we have to go for color.
sharing some suggestions for identifying color for the rows in website.
i know you already tried using get attribute activity. did you try for the style attribute it will give you the entire css style info from the website definitely there is information related for color.
Try the below custom package from the UiPath market place(if you organization allows for third party packages) it would provide the CSS property info from the website so that you can identify the color. give it a try. thanks.