class=‘slick-cell l2 r2’
I have to pass a variable counter in the place of (2) in the selector. How should I do it? I have already tried class=‘slick-cell l"+counter.ToString+" r"+counter.ToString+"’ but it didn’t work out


It is working -

int counter = 2;

“class='slick-cell l”+counter.ToString+" r"+counter.ToString+"’"

if you will write line above. its working for me

It isn’t working for me. The error message shows that it couldn’t find the Ui element corresponding to the given selector

then the problem with be your whole selector not only with class attribute. @sanap

as @aksh1yadav suggested its the issue with selector .
Use UiExplorer to find most reliable selector.