Passing String variable to selectors


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”


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


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


Thank you

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