Forum Discussion

heidi_n's avatar
heidi_n
Regular Contributor
11 years ago

How to resolve? - The window was destroyed during method execution

How can this error message be resolved? "The window was destroyed during method execution."
  • Ok well basically you'll want to make sure the window you are clicking, sending keys to, etc, is actually there and not closing/crashing during test execution. The log should tell you what form was "destroyed" during execution.
  • Ryan_Moran's avatar
    Ryan_Moran
    Valued Contributor
    Ok well basically you'll want to make sure the window you are clicking, sending keys to, etc, is actually there and not closing/crashing during test execution. The log should tell you what form was "destroyed" during execution.
  • Ryan_Moran's avatar
    Ryan_Moran
    Valued Contributor
    This occurs when the form you are working with is closed. Can you post the sections of code where the error occurs?
  • heidi_n's avatar
    heidi_n
    Regular Contributor
    I am not sure how to do that. (It is a Keyword Test, if that makes a difference.)