*Summary
When running Katalon with other keyboard language set than EN, STRINGS are interpreted which in my opinion should NEVER happen!
*Steps to reproduce
- Set keyboard language to DE
- Create stings (directly in code, as GlobalVariable, as bound variable,…) like qwerty, qwertz, zzzz, yyyy
- Bring string to input filed via setText and sendKeys methods:
//SEND KEYS
def TO_EditUsername = findWindowsObject('Betaversion_AndTryOut/Login/Edit_Username')
//runtime: ayertz
Windows.sendKeys(TO_EditUsername, Keys.chord("a", "z", "e", "r", "t", "y"))
//string in (global or local) variable = qwerty, typed in text = qwerz
Windows.sendKeys(TO_EditUsername, Keys.chord(GlobalVariable.USERNAME_ALLROLES_CORRECT))
//runtime: "yyyy, zzzz"
String username2 = "zzzz, yyyy"
Windows.sendKeys(TO_EditUsername, username2, FailureHandling.CONTINUE_ON_FAILURE)
//SET TEXT
//string in (global or local) variable = qwerty, typed in text = qwerz
Windows.setText(TO_EditUsername, GlobalVariable.USERNAME_ALLROLES_CORRECT, FailureHandling.CONTINUE_ON_FAILURE)
Windows.setText(TO_EditUsername, "querty", FailureHandling.CONTINUE_ON_FAILURE)
//runtime: "yyyy, zzzz"
String username1 = "zzzz, yyyy"
Windows.setText(TO_EditUsername, username1, FailureHandling.CONTINUE_ON_FAILURE)
*Expected Results
- A String is a String, what ever is TYPED into the variable is sent in runtime exactly as it was typed and stored.
Whatever I write into a string should NEVER be manipulated by ANY outside settings. A string is a string is a string!
*Actual Results
- This only works if the keyboard language is set ti EN, no matter what was written to the variable.
*Screenshots / Videos
*Operating System
Windows 10
*Katalon Studio version
e.g. version 9.5.0