IsVisible
bool IsVisible(string control)Description
Checks whether a UI control is currently visible on screen.
This corresponds to the IsOffscreenProperty in UIAutomation (inverted).
Typical use cases
- Checking if a popup is shown
- Verifying hidden or collapsed controls
Parameters
- control - Identifier of the UI control.
Returns
- bool - True if visible, false if hidden/offscreen.
Example
void main()
{
VerifyEqual(IsVisible("DIALOG_LOGIN"), true);
}