Forum Discussion
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++;
}
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.
- BenoitB5 years agoCommunity Hero
Not supported but you can vote for them to be implemented
Someone has a workaround (last message of the post)
- bjhiltbrand5 years agoOccasional Contributor
Not the solution I was hoping for, but it gives me places to watch for implementation of this feature. Thanks. 🙂
Related Content
- 5 years ago
- 2 years ago
- 8 years ago
Recent Discussions
- 2 days ago