Contributions
Setting an object takes too long
Hi, i'm new to test complete. I'm trying to understand how does the Set method works. though my auto-wait timeout is set to 10 secs , i see sometimes it takes over 20 secs to set an object. Not sure what i'm doing wrong, please see my below example. My Code do identify the object , the question is why does it take long in "Set myObj =pObj.FindChild(Array("ObjectType","ObjectIdentifier"),Array(objType,objIdent),30) " ,, it doesn't take that long in all object, only some page objects. Thanks 'Calling the Function Sub Test() Set myPage = MyPage If MyPage. Exists Then Log .Message "page Found" Set obj = FindObj(myPage ,"Textbox","ctl00_ContentPlaceHolder") if obj.Exists Then obj.SetText("Test") Else Log.Error "Object Not Found" End If End If End Sbu Function FindObj(pObj,objType,oIdent) Set myObj =pObj.FindChild(Array("ObjectType","ObjectIdentifier"),Array(objType,objIdent),30) ifmyObj .Exists Then Set FindObj=myObj Else FindObj = Nothing Set End FunctionSolved1.3KViews0likes3Comments