hi all,
I am trying to do the “Highlight” assignment in Level 1 Lesson 6 Part 3 video - Dynamic Selectors. Unfortunately it is not working.
In my humble opinion, when they are showing the solution, that is to replace “0” with “+digit+”, where digit is the input variable, it is not very clear as they are showing it in properties textbox instead of Ui Explorer.
However here is what I am doing -
less than sign uia automationid = ‘num"+digit+"Button’ cls=‘Button’>
-(Sorry for writing like this…when I am giving the less than sign it is not coming and as I am using my office network so somehow I am not able to upload the screenshot).
It is throwing error saying current selector is invalid.
I am sure I am doing some silly mistake.
Could you please help me out with that?
Thanks in advance.
Thanks @lakshman.
Unfortunately as I am not able to upload the screenshot. I guess as I am using my office network there is(probably) some restriction.
But I have edited my original post. Please have a look.
Hi @sujoy_mukherjee,
There is a known bug with dynamic selectors based on variable. If you will put you variable in selector editor as let’s say "+variable+" it will change it to quote;+variable+quote;. Please check if you don’t have situation like this. If you have you need to write your variable manually (not in UiExplorer) directly in selector text box → . This should work. And don’t open selector with this ... button.
I have followed Pablito’s advise and edit it within property window only.
However still there was an error - it was showing Option Strict On disallows implicit conversion from String to Double
The variable was declared as Int32.
Now I applied toString method on it and it is working fine.
Thanks again for your help