Is the selectors here validated? how can we get validate for this one? how can I use "*" wildcard here?

Hi @Swagasmini_Jena

what issue you are facing

Thanks
ashwin S

Highlight β€˜Button’: The selector is not valid

Hi @Swagasmini_Jena

Check this

Pass the digit value with aaname

Thanks
ashwin S

Hi @Swagasmini_Jena
Try to update or reinstall Uipath.UiAutomation.Activites package in manage packages.

1 Like

@Swagasmini_Jena Can you tell me what are you trying to automate here :sweat_smile:

to highlight a digit in calculator

@Swagasmini_Jena Then I guess you need to keep the last Digit of Ctrl Id value as Dynamic and need to include only Ctrl ID

Try this
"<wnd app='calc.exe' cls='CalcFrame' title='Calculator' /><wnd aaname='"+number+"' />"

Number is string here
u can use int but then u need to change in selectors like
"<wnd app='calc.exe' cls='CalcFrame' title='Calculator' /><wnd aaname='"+number.tostring+"' />"

1 Like

yes i havegiven the same as you have said it as name i kept the variable name as digit

then just use as Digit in that selector instead as Number

1 Like

Hi @Swagasmini_Jena

When click on Selector you are getting like this

β€œ<wnd aaname=’&quot+digit+”&quot />"

Thanks
Ashwin S

exactly

You need to edit in properties panel

Hi @Swagasmini_Jena

ok then do one thing

Click on the selector text box and change it as β€˜"+digit.ToString+"’

it will work

Thanks
Ashwin S

dont goto edit selectors instead

1 Like

no its only selecting the number that i choose thats 2 not other

Hello @Swagasmini_Jena

Are you still facing having the selector issue?

@Swagasmini_Jena

Have you tried using the Repair button on the Edit Selector window?

  1. Click Indicate Element
  2. Select the element you want to Click
  3. Click Repair
  4. Again, select the element you want to Click
  5. A prompt would appear notifying you that the live element has been fixed or something
  6. Click Ok, then click Validate to check the live element will be clicked correctly.

Let me know if this works for you too.