Hello, My English is not very good , so If these is any word weird，I'm sorry. First,I want talk about the chinese double quotation mark [“]. Usually [“] is just an Character Like a,あ,阿 And it is 2 byte, I don't kown why but in UiPath Studio most of the time [“] just equels ["] like this.
So if I want use [“] as a text ,in theory,I need to write it twice like this .
if I write ["“"],it will be an error in editor.
Then intersting thing happened that if I just click [ok]，then error disappeared.
So actually， [“] can be used as a text without write twice, but only on when write it directly as string, if I write it in a function,it will be an error.
Then this is the problem, In selector,["] will be converted to [&/quot/;],but [“] just [“]. After UiPath.UIAutomation.Activities upgrade to 21.4(or earlier but not 20.10), When I use a variable in seletor,it will become to a String.Format funtion. So if the selector string contains [“] And I try to use a variable in this seletor, error occurs.
If I write [“] twice ,error disappeared, but uielement cannot be recognized of course. In 20.10 or earlier ,there isn't any funtion appears in selector,so that's all right. I know there is some way can avoid this problem, but I hope it can be fixed. thanks.
text.txt (1.3 KB)