Forum Discussion

navkumt13's avatar
navkumt13
New Member
3 years ago

TESTED WINDOW OR CONTROL HAS BEEN DELETED

Hey, was working on a web application. When I try to click on "ok" on the popup that I get, I get an error message saying "tested window has been deleted".

What am I doing wrong and what is the workaround when dealing with popups? (The documentation relating popups didnt help)

  • Are you saying that your test has a click for the Ok button and after that click is where you see the error?

  • Kitt's avatar
    Kitt
    Regular Contributor

    This may provide a good starting point [TestComplete reference], but from what you are describing it sounds like the pop-up may be treated as a separate window/page and depending on your approach, TC may not know that it needs to set it's focus on another window. Consider using NameMapping to find the object [Community reference]