Forum Discussion
Kitt
Regular Contributor
Can you try using VAR instead of LET? Or stripping everything down to the TestComplete example [reference] using aqUtils.Delay(100):
// Calls method asynchronously
var callResult = Runner.CallObjectMethodAsync(list, 'ClickItem', itemText);
// Performs the desired user actions
// ...
// Waits until the asynchronous call is over
while (! callResult.Completed )
aqUtils.Delay(100);
// Checks the results
MethodResult = callResult.ReturnValue;
kakabubu
2 years agoContributor
I'll try changing to 'var' and retest
I removed all var a long time ago because they are available outside the scope.
But the solution with callResult.Completed can not work in some cases, because I also checking if the item was already selected in a loop
Related Content
- 10 years ago
- 2 years ago
- 10 years ago
- 5 years ago
Recent Discussions
- 16 hours ago
- 23 hours ago
- 23 hours ago