Forum Discussion

rohita's avatar
rohita
Occasional Contributor
12 months ago

Getting error while running script - window handle does not exist.

I am getting below error when I execute test case - 

The window with the handle 0x00000000 does not exist.

This error occurred when the tested window (or control) or its parent object was deleted or recreated right before the method call. For example, you stored a window reference to a variable and then called a method through this variable.
If the object has been recreated, then to avoid the error, get the new object before the method call.

 

Same script works without issue on my other teammate's machine.

Can someone please help.

  • Are you using any of the WaitNNN methods before the line that gets this error?

    If you are, try waiting a little longer and see if that avoids the error.  If not, add a Delay right before and wait for it that way.