Desktop automation-two windows
Hi, I have to automate a desktop application. In the application when I click a button, it will open another instance of the application. Then I close the second instance and continue to work on the first instance. But I am having issues running this test case on test complete. I get the following error:
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.
Let's see the part of your code that causes the error.
[Community Heroes] 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 Heroes]
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 Hero] signature is used with permission by SmartBear Software.