tested window (or control) has been deleted
Hi,
I'm new to test complete. I have built my first script using cucumber BDD. I'm testing Salesforce Application. Whenever I run my feature file I get "tested window (or control) has been deleted" error message and my test stops at execution. This only happens when I lunch my chrome browser from the extended monitor. I don't get the message when I run the script by launching the chrome browser from the laptop. Anyone knows what is the root cause of this issue and how to resolve it? I have tried putting Aliases.browser.RefreshMappingInfo(); into my hooks file @BeforeFeature function but still having the issue.
If the object has been recreated, then to avoid the error, get the new object before the method call.
Try doing a Get on the page before looking for the elements.