I neet WindowTester to enter a Windows path name (example: C:/firstFolderName/secondFolderName/filename.txt) into a text box. When I type it into the field myself, everything enters fine. However when I do
- Code: Select all
ui.enterText("C:/firstFolderName/secondFolderName/filename.txt");
the text box gets filled with C:7firstFolderName7secondFolderName7filename.txt, all slashes are printed as sevens. I suspected it was an issue with international keyboards so I tried adding the WT.resetLocale(); again (although I already do that in setUp and reset it tearDown.
But even if I have
- Code: Select all
WT.setLocaleToCurrent()
ui.enterText("C:/firstFolderName/secondFolderName/filename.txt");
WT.resetLocale();
it still prints the "7" instead of "/" and I can't enter a Windows Path Name.
PS:
"//" is turned into "77"
"\\" is turned into "ß"
"$" is turned into "$"
"-" is turned into "-" (on the german keyboard, "-" is where "\" is on the US keyboard)
"ä" is turned into "ä"
Please help