There still exists a problem with enterText concerning international keyboard support which has already been pointed out in this thread http://www.instantiations.com/forum/viewtopic.php?t=927&highlight=numeric.
We tried to create a workaround using keyClick to press the corresponding key(s) for every "non standard" character of the string to be entered, e.g.
- Code: Select all
ui.keyClick(WT.SHIFT, '1');
presses the exclamation mark '!' on a German keyboard.
Unfortunately some characters like '~' need to be accessed using the AltGr key which is equivalent to Ctrl+Alt.
More unfortunately this
- Code: Select all
ui.keyClick(WT.CTRL | WT.ALT, '+');
does not work! WindowTester still hits '+' only.
So what's wrong with this? Do I need a workaround for our workaround?
Here is an overview about the German keyboard layout: http://carbon.cudenver.edu/~tphillip/GermanKeyboardLayout.html
Regards
Alex