Forum Discussion
BenoitB
5 years agoCommunity Hero
Start typing the option value, character per character till to the minimum length needed to raise the autocomplete list.
It's the way i do
It's the way i do
- bjhiltbrand5 years agoOccasional Contributor
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.
Related Content
- 8 years ago
Recent Discussions
- 20 hours ago
- 21 hours ago
- 5 days ago