Forum Discussion
But I have seen sometimes it show the code completion for the object returned by FindChild methods ? Is it expected ?
Or they will not show code completion ?
Thanks
Nishchal
Honestly, I would not expect FindChild to return anything for code completion so that fact that you ARE getting it on occasion is a surprise to me.
- nisgupta6 years agoValued Contributor
I am working on the grid where the 2 columns make the row unique.
I have attached the screenshot ftvorgn_ss.png
second attachment showing testcomplete code in javascript.
Got the error
"You are trying to call the "Parent" method or property of an object that does not exist."Please advise.ThanksNishchal - tristaanogre6 years agoEsteemed Contributor
Exactly as the message indicates... you have an object... you are trying to access it's parent through that object... but the original object, for some reason, no longer exist. Something changed in the middle there. Before you use an object, if there is a chance that the object is destroyed in the process, always check for existance.
- nisgupta6 years agoValued Contributor
The object does not exist on the first page . We have pagination and the object exist on the 3rd page . in the script While condition become true and it should clcik on next page but it through the error .
- tristaanogre6 years agoEsteemed Contributor
You cannot call "Exists" on an object that does not exist. Your while should FIRST check for exists... and then, once the object exists, THEN call the Parent object. You cannot call the method or property of an object that does not exist, this includes the "Exists" property. You need to alter your "While" loop...
Related Content
- 2 years ago
- 12 months ago
- 2 years ago