" Error: the Object invoked has disconnected from its clients " is displayed while using Object Spy.
i am trying to record a keyword test and while playing back the object was not being identified ( it was clicking on some other option on the screen) hence was trying to
check for the properties using Objec Spy -> Point and Fix option.
in the Properties -> for Enabled / Height / visible / Width -> i see the Error: the Object invoked has disconnected from its clients "
and when clicked on "Object browser" on the Object spy window it says:
Uanble to highlight this object in the object tree, because it does not exist.
Can some one help here.
Test Complete version: 14.0.317.
Most probably this means that the target object was destroyed and recreated in the tested application's code and this invalidated the reference to the initial object that TestComplete worked with. You need to search for the object a-new and use new found object.
/Alex [Community Champion]
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
In your test where you are clicking on this object, add a line right before it to wait for it to exist before you move on. The Wait functions are good for this:
i realized what mistake i was doing, while using the "Point and Fix" option
i was highlighting the object and then performing a click action and then was keying Ctrl+Shift+A
hence it was returning error as Test Complete didnt knew what to read after click.
the correct way was to highlight the object that is to be identified and then key in Ctrl+Shift+A.