EscapeSequence adds undesired character(s)

Bug reports.
MarekAbb
Posts: 3
Joined: Wed Mar 06, 2019 2:05 pm

EscapeSequence adds undesired character(s)

Post by MarekAbb » Wed Mar 06, 2019 3:58 pm

Problem reproduced with Ranorex 9.0 on Windows 10 Enterprise
Keyboard.EscapeSequence returns string with additional undesired character (curly bracket).
string str = @"!§$%&/()=?´`{[]}\#'+*~,.-;:_<>|@^°";
str = Keyboard.EscapeSequence(str);
str value before: !§$%&/()=?´`{[]}\#'+*~,.-;:_<>|@^°
str value after:__!§$%&/()=?´`{{[]}\#'+*~,.-;:_<>|@^°

ahoisl
Certified Professional
Certified Professional
Posts: 175
Joined: Fri Sep 07, 2007 8:16 am

Re: EscapeSequence adds undesired character(s)

Post by ahoisl » Wed Mar 06, 2019 5:08 pm

IMHO that's exactly what the EscapeSequence method shall do. It escapes characters that have a special meaning for the Keyboard.Press(string) method, i.e. escape curly brackets with another one "{{".

As a consequence, the escaped sequence will be replayed as is and not as if having a special meaning for the curly bracket.

Regards,
Alex
Ranorex Team