UIElement wildcard character is invalid

Hi Guys,
BS
Sometimes will idx=‘2’ ,What should I do?

@Phox

I assume, using wildcard in idx attribute for this selector wont work.
If there is only two possibilities for “idx” 1 or 2 ,then you can try element exist activity with selector having idx=1 and if it returns FALSE then try selector with idx=2.

Regards,
Ranjith

Thank your reply
Why does ‘’ sometimes become invalid?
Most of the time it works.
When there is no IDX or IDX = 1 '
’ is allowed
When IDX = 2, ‘*’ will be invalid

Maybe there could be a possibility of more than one web element using the same class “SunawrFrame” in the webpage and these elements were differentiated using idx value.