Application changes from WinFormsObject to Window
When running a test, after some time of normal operation, TestComplete will begin to see the application under test as a Window object instead of a WinFormsObject, and thus it loses access to the .NET properties it needs to run the test. This can be noticed in the object browser:
Normal:
Application has changed to Window:
The WorkFlowMainForm application is not actually changing - when it is in the abnormal state, restarting TestComplete and visiting the Object Browser again will result in the application again appearing as a WInFormsObject as expected. Refreshing the Object Browser isn't enough, only a restart will get it to recover.
What could be causing TestComplete to see the WinFormsObject as a Window?
I greatly appreciate any assistance!
It feels very similar to this issue, but this is obviously not something related to TestComplete 7 specifically: https://community.smartbear.com/t5/TestComplete-Functional-Web/Referrence-Changing-from-winforms-object-to-window-object/td-p/70224
The test script was developed under TestComplete 10, the same behavior is observed when running it in TestComplete 10 and the latest TestComplete 12.