I have an automation that I need to click a specific number within a table on a Cerner application. I have given it a target to see how the click works and noticed it uses coordinates, but when I remove the coordinates I get an error. I have tried so many things I can’t write them all down here, but is there a way to pass a variable into the CV click descriptor without coordinates? This automation goes through a CSV file to open an account, sometimes these accounts have multiple account encounters within the account file page. I need to click the specific account encounter.
Hi @Adrian_Alwine,
For sure, you can give variables in CV descriptors, we mostly use dynamic descriptors, it just depends what doe you want to go dynamic with.
You will just have to figure out the common pattern between the 1 account number entry and multiple account number and accordingly define the descriptor.
Also, I would suggest to use multiple anchors to ensure right target is fetched.
Please note: You can’t not give coordinates, those need to be there but you can go about checking the specific account name, if matched, then click that account. You can also provide accuracy parameter.

Hope this helps.
Regards
Sonali
Sorry for the late delay here. I guess let me add some more context. To get the descriptor working for CV Click I have it coded to “Target Text: ‘1234567 - 3’”
With it set like that, I get an error stating that the “target must be set”. For now, I just need to get this to work, but not even the static value I am putting in just to pass it or make it work is working. Once I can get this working then I will try to pass a dynamic variable through.
Hi @Adrian_Alwine,
The target text doesn’t look right to me. There are no coordinates!!
Target text comes in the format that you see in my screenshot above.
“Target: Text ‘value’ (coordinates) " → for static value
“Target: Text '”+variable+”’ (coordinates) " → for dynamic value
Select the target text you want by indicating it on screen.
For better understanding, you can also take below CV course on UiPath Academy, it will be very useful:
https://academy.uipath.com/courses/ai-computer-vision-with-studio
Additional documentation:
Hope this helps.
Regards
Sonali
So, that was going to be my next question. It does require coordinates, but what if the coordinates are not the same every time?
Hi @Adrian_Alwine,
Coordinates should be same for CV to work as it works on positioning of the element.
There is a concept of offset as well for CV.
Also, to make it better, you can add anchors which increases the probability of finding that element.
Else you can use regular selector.
But, I would strongly suggest to go through its academy course, it will help you greatly in understanding what you can and can’t do per your process requirement.
Regards
Sonali
