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
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