CV dynamic descriptors

Hi @sbotan @Bogdan_Sultana,

I am reaching out to you with respect to usage of CV descriptors.

I read the documentation and forum queries wrt CV dynamic descriptors but couldn’t get the info what I was looking for.

Hence, here I am :slight_smile:
I have used CV extensively in my off late project and have explored various ways we can use various features, read documentation and even go through CV course on UiPath academy, however, couldn’t find much regarding “How to make CV descriptors dynamic”.

Requirement:
I want to make CV descriptors dynamic for the text(to be found) and can sometimes be for the anchor.

Hence, I used variables in descriptors, few ways I have tried to use dynamic descriptors are as below(also tried with the Accuracy values suggested) and Iused this in many CV activities like CV element exists, CV get text, CV Hover etc:
“Target: TableCell (271,85,552,201)” +
“ColumnName: “+in_TransactionItem.SpecificContent(“Licence Number”).ToString+” (420,85,398,26)” +
“RowContains: Licence Class: (271,111,149,24) RowCell: 1” +
“Anchor: Text ‘Agent Licence Information:’ (400,53,174,14)”

“Target: TableCell (271,85,552,201)” +
“ColumnName: “+in_TransactionItem.SpecificContent(“Licence Number”).ToString+” (420,85,398,26) Accuracy:0.95” +
“RowContains: Licence Class: (271,111,149,24) RowCell: 1” +
“Anchor: Text ‘Agent Licence Information:’ (400,53,174,14) Accuracy:0.95”

“Target: Text '”+in_TransactionItem.SpecificContent(“Licence Class”).ToString+“’ (421,416,240,14)”

Observation:
No matter the accuracy level given, it sets the condition to true even when a part of the test is found.
As an example:
The text I wanted bot to find was “Life A&S only”, so only when whole text is found, it should return true but even when it returned true for even “AS” which I understand it would have considered as a closest match and hence the result. But putting accuracy value to higher 0.95 should have not picked it but it still did.

Thus, wanted to check with you on how to deal with such requirements using CV as we are rally looking forward to encourage people in our organization to start making more and more use of CV instead of regular selectors and see if the stability levels are better achieved.

Not sure what I am missing here or may be there is something that I am doing wrong here.

Looking forward to hearing your inputs on the same.

Regards
Sonali

@sonaliaggarwal47

One thing I see here is in one of the places you missed giving single quotes(') around the text value…

Also if would be easy to see the actual value if ypu can use performatted text (</>) to give the discriptor so that we can see if there is some issue in it

Cheers

Hi @sonaliaggarwal47, unfortunately, we do not support the “Accuracy” parameter for Tables.
We need to do a better job of exposing this parameter so we don’t generate such confusions. I think tables should also be supported in the future, so it’ll be in our backlog, but I can’t promise a release date for this change.

As a suggestion, try using CV in Unified Target as well if there is also access to selectors - we’re moving away from specific CV activities to integrating CV in the UIA’s Unified Target for which we made some significant steps in the last 2 GA releases.

Thank you @Bogdan_Sultana for your inputs.

yes, I have tried to use it in tables as well as text values.

But it doesn’t seem working for me even in case of text values as below:
“Target: Text '”+in_TransactionItem.SpecificContent(“Licence Class”).ToString+“’ (421,416,240,14) Accuracy:0.95”

I am not yet aware of CV in unified target, but i will explore on this. Currently I am using all specific CV activities in my project.

Regards
Sonali

Hi Anil,

There is no single quote in original descriptors for table name, it comes as below, wherein i replaced 12345 with variable name:
“Target: TableCell (271,85,552,201)” +
“ColumnName: 12345 (420,85,398,26) Accuracy:0.95” +
“RowContains: Licence Class: (271,111,149,24) RowCell: 1” +
“Anchor: Text ‘Agent Licence Information:’ (400,53,174,14) Accuracy:0.95”

But yes, now I got to know from @Bogdan_Sultana that this parameter doesn’t work for tables so there is no point providing accuracy for this. But variable needs to be provided like this if column name is a variable you are trying to find.

Regards
Sonali

2 Likes