Selector


#1

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


#2

@ddpadil


#3

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


#4

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


#5

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


#6

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