Forum Discussion

Bingo's avatar
Bingo
Contributor
5 years ago
Solved

TC report an error " Unexpected window: '' " for one normal subobject.

     Like the pic, it report an error for unexpected window, but it don't trigger my events llike last unexpected window, And the unpxected point to " Sys.Process("Inventor").WPFObject("HwndSource:...
  • AlexKaras's avatar
    5 years ago

    Hi,

     

    While it is good to know that you've solved the problem, I would pay attention to the 'The action may be performed incorrectly...' warning and improve test code to handle this properly.

     

    As a note: OnUnexpectedWindow event is triggered when test code tries to activate some window but fails to do this because the window cannot be activated (i.e. put in front of user) due to be overlapped by another application- or system-modal window.