11 years ago
The callee (server [not server application]) is not available and disappeared; all connections are invalid. The call did not execute
VB script run time error "The callee (server [not server application]) is not available and disappeared; all connections are invalid. The call did not execute".
In the test item when it encounter the below function first time it worked and when encounter second time it gives aforesaid error. The error points to the line "Delay 10000, "Searching Web Object Elements..."" The testcomplete version it fails is 10.4. The same script is working fine in version 10.10.
In the test item when it encounter the below function first time it worked and when encounter second time it gives aforesaid error. The error points to the line "Delay 10000, "Searching Web Object Elements..."" The testcomplete version it fails is 10.4. The same script is working fine in version 10.10.
Function WaitForObjElement(strProp, strValue)
startTestTime = Minute(Now())
TargetTestTime = int(startTestTime)+4
Do
Delay 10000, "Searching Web Object Elements..."
WorkStationUrl="http://dal-v-de/*"
Set strObj = Sys.Process("iexplore").Page(WorkStationUrl).NativeWebObject.Find(strProp, strValue)
If (TargetTestTime = Minute(Now())) then Exit Do
Loop Until strObj.Exists
End Function