Ask a Question

" Error: the Object invoked has disconnected from its clients " is displayed while using Object Spy.

Poornimak79
Occasional Contributor

" Error: the Object invoked has disconnected from its clients " is displayed while using Object Spy.

hi 

 

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.

 

4 REPLIES 4
AlexKaras
Champion Level 3

Hi,

 

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.

 

Regards,
  /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.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
Poornimak79
Occasional Contributor

how can i do that , can you please elaborate.

 

Thank you

Poornima

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:

https://support.smartbear.com/testcomplete/docs/app-objects/common-tasks/waiting-process-or-window-a...

Poornimak79
Occasional Contributor

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.

 

it worked.

 

Thank you

Poornima

cancel
Showing results for 
Search instead for 
Did you mean: