Backticks in textboxes using the Keys command
Related to ticket from 2 years ago:
testcomplete-questions/testexecute-enters-in-textbox/247032
Somehow, during the test run when using Keys, sometimes a ` (backtick) is entered into the field.
Over the last week, it happened twice at different times and in different projects.
Since the last 2 years, I have rewritten my tests from VB keyword tests to JS scripts, and this still happens. I can't reproduce it since it is intermittent.
Here are 2 examples:
- When using textbox.Keys("[Enter]");
It entered: `[Enter] - When using textbox.Keys("1000055[Enter]");
It entered: '1000055[Enter]
I'm just hoping someone somewhere has seen this issue before. I really can't figure out how or why TC does this.
I'm runnning the tests via batch Sessioncreator with TaskScheduler
For those in the future that face the same problem here is how I fixed it:
My keyboard language was set to "English (International)".
Meaning to enter a backtick (`) you have to press it twice, same for quotes (").
The press once is used to make special characters, ' + a = á etc.I think it might have been a windows bug where it whould register the key pressed once,
even though it was never pressed.
The fix is to set the keyboard language to "English (United States)".
This fixed the issue by disabling the 2nd press needed to make the actual chars (`, ', ")
but now I can no longer make á, é, í, ó, ú, ý or ä, ë, ï, ö, ü, ÿ etc.
I can live with that tbh.