Is there a workaround for the SilkTest Classic error "*** Error: Window type mismatch - Expecting a top-level window or MDI child window" occurring on a SetActive()?
The above error occurs when SilkTest is trying to SetActive a window which does not enter the following categories:
- Top-level windows (such as main windows)
- Moveable windows, windows that can be moved or resized.
- MDI child window
For example, Browser.DialogBox("a DialogBox").BrowserChild("a BrowserChild").SetActive() would return this error.
Simply commenting out the SetActive() or, if testing against a browser, replacing the line with a BrowserPage.SetActive() will allow the test to run successfully, getting rid of the error message.