Dynamic variable in selector for click activity not working

Hi Guys,

I have used a variable name in my selector for click activity. I used it in aaname, I also tried it in inner text but still no luck. Screenshots below. I get exception as the selector doesn’t find it.

This is the area, I am searching for the year in
image

This is the error I get:

is it because of the extra space between ’ and {{ here image

Even removing that space didn’t help!

Could you show us the aaname of all the years before you added the variable? From your screenshot, it looks like most aanames just contain empty spaces.

I removed the css-selector part and made aaname=’{{strYearID}}’ the it worked fine :slight_smile:

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