Forum Discussion
Kitt
2 years agoRegular 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;
- kakabubu2 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 - kakabubu2 years agoContributor
Tried changing to "var"
Didn't worked
Added aqUtils.Delay(500) now described error is thrown on row with this delay
Related Content
- 2 years ago
- 10 years ago
- 5 years ago
Recent Discussions
- 16 hours ago
- 23 hours ago
- 23 hours ago