How do I detect that a window is not being displayed on the screen, when SilkTest can see it even though it is visibly hidden?
It sometimes happens that SilkTest detects a window (such as a dialog box or message box) on a page, even when it is not actually being displayed to the user at that moment. In this instance, detecting when the window is actually being displayed and when it is not can be difficult when methods such as IsEnabled, IsVisible and Exists can return a value of TRUE whether the window is shown or not.
They return a value of true because although the window is not seen, it can still be Enabled, Visible (if it has not been specifically designated as a hidden object), and very much Exists.
In a circumstance such as this, you could try using the IsActive() method. If the window is not being displayed then it is not the current active window. Therefore, this method will only return TRUE when the window is being displayed, otherwise it will return FALSE.