ZenoTest — Windows Desktop UI Test Automation
ZenoTest is a lightweight and powerful tool for Windows desktop UI test automation. Record, generate, and run automated tests efficiently for WPF, WinForms, and native apps.

VerifyNotExists

bool VerifyNotExists(String control)

Description
Checks whether the specified control does not exist in the application under test.
The function searches for the control by its name and verifies that it is absent or inaccessible.
If the control is not found, the verification passes and returns true.
If the control exists, the verification fails and returns false, which can be reported as a test error.

Parameter
- control - The identifier or name of the control to be verified.

Return
- bool - true if the control does not exist, otherwise false.

Example
void main()
{
    bool ok = VerifyNotExists("LBL_ERROR"); // Verifies that the error label does not exist
    if (!ok)
    {
        // Handle unexpected existence of control
    }
}
#include CloseAUT Console mode DoubleClick Execute Fail File GetAUTFileVersion GetAUTProductVersion GetAUTQtVersion GetAUTSuspectedCompiler GetAUTSuspectedFramework GetCurrentWorkingDir GetName GetQtProperty GetText GetValue HasFocus IsAUT64Bit IsChecked IsEnabled IsVisible LeftMouseClick LeftMouseDown LeftMouseUp MiddleMouseDown MiddleMouseUp MouseWheel Pass Print RightMouseClick RightMouseDown RightMouseUp Script Language SendKeys SetFocus SetQtProperty Sleep StartAUT string TimerStart TimerStop TimerVerifyLess vec2d VerifyContains VerifyEndsWith VerifyEqual VerifyExists VerifyGreater VerifyLess VerifyNotEqual VerifyNotExists VerifyScreenCompareEdgeBased VerifyScreenComparePixelExact VerifyStartsWith