cancel
Showing results for 
Search instead for 
Did you mean: 

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

SOLVED
Highlighted
Regular Contributor

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

How can this error message be resolved? "The window was destroyed during method execution."
Thank you, Heidi / Quality Assurance Specialist
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
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.

''-Praise the sun and Give Kudos.''

View solution in original post

3 REPLIES 3
Highlighted
Valued Contributor

This occurs when the form you are working with is closed. Can you post the sections of code where the error occurs?

''-Praise the sun and Give Kudos.''
Highlighted
Regular Contributor

I am not sure how to do that. (It is a Keyword Test, if that makes a difference.)
Thank you, Heidi / Quality Assurance Specialist
Highlighted
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.

''-Praise the sun and Give Kudos.''

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!


Challenge Status

Get properties of a web page element

See replies!

Compare images using the Region Checkpoint

See replies!

Compare HTML table with Excel file and correct data in Excel file

Participate!

How to execute remote test and obtain results via Test Runner REST API

Participate!
Top Kudoed Authors