Forum Discussion
It's the way i do
I have done that, as well as pressing ctrl+space to force the autocomplete window to come up. Nothing happens either way. Am I missing something?
- BenoitB5 years agoCommunity Hero
did you put a wait in typing with the '[Pxxx]' syntax ?
Sounds strange, do you have access to dev team ? if yes please ask them how they've implemented the autocomplete, perhaps it's not a standard way.
The code below just check if autocomplete has occured and filled correctly the field (TextInput) with the wanted value (Value).
I've put a click on the field each characted typed, this is the only trick used.
let i = 0; while ((!(TextInput.WaitProperty(PropertyName, Value, 100))) && (i<10)) { TextInput.Click(); if (ClearField) TextInput.Keys('^a[Del]'); let tableau = Value.split(""); for (let j = 0; j<tableau.length; j++) { TextInput.Click(); TextInput.Keys(tableau[j] + '[P250]'); if (TextInput.WaitProperty(PropertyName, Value, 100)) break; } i++; }
- bjhiltbrand5 years agoOccasional Contributor
No, I'm not talking about having autocomplete happen on the application under test. I'm talking about autocomplete in TestComplete itself when writing the script using javascript.
- BenoitB5 years agoCommunity Hero
Lol .. did not understand that !
Sorry...
For code completion in TC, if even ctrl+space doesn't work on trivial case, need perhaps to contact Support.
Have you activated the code completion auto pop-up settings ? In tools -> options -> Panels -> Code editor -> Editing
For your completion it will not work in this case unlesss you add your constants in an extension language package.
Related Content
- 8 years ago
- 14 years ago
Recent Discussions
- 20 hours ago
- 20 hours ago
- 5 days ago