Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

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?

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.

Old KB# 22111

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2013-02-15 19:28
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.