How to pass a variable in cv click

Hi Team,

How to pass the varible in cv click…
I have variable called straccount i need to pass in cv click.
So. I have pass the value in descriptor as
“Target: Text”+ “‘”+stracoount+“’”+"(76,540,58,11)”
But i am getting an erro please suggest is thag the correct way to pass the variable on cv click

Thanks

Try “Target: Text”+ stracoount+"(76,540,58,11)”
Also please mention whats the error you are getting.

Hi @vaishali

please check

"Target: Text='"+straccount+"' (76,540,58,11)"

Regards

2 Likes

Hi @vaishali

Can you try the below

"Target: Text '" + straccount + "' (76,540,58,11)"

@vrdabberu : The solution is correct.
I have another related problem with CV Click. I want to click -50 pixels OffsetX from the target! Changing the clipping regions does not work. How to click left from the target(-50)?

"Target: Text='"+straccount+"' (0,0,0,0)"
"Target: Text='"+straccount+"' (-50,0,0,0)"