Passing String variable to selectors

Hello,

I am getting an error while I was passing some string variable in to the selectors. Some syntax is missing please help
Error Message- “String constant must be quoted with double string”

Thanks…
"


<uia cls=‘Button’ name=’"+Digit+’" idx=‘1’ />"

@NikhilRPA

If Digit is a integer value, give it as Digit.ToString

Syntax : ’ " + Variable + " '.
Note: You have used single quote after variable… Use double quotes after variable

2 Likes

Thank you

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.