ZenoTest
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.

while

while (condition)
{
    // statements
}

Description
Executes the enclosed block of statements repeatedly as long as the condition evaluates to true.
The condition is evaluated before each iteration. If the condition is false from the start, the body is never executed.
The break keyword can be used inside the loop body to exit the loop prematurely.

Condition
- The condition must be a boolean expression.
- If the condition evaluates to false (or the expression is not of type bool), the loop terminates.

Special Keywords
- break - Exits the while loop immediately, regardless of the condition.

Example
void main()
{
    // Basic counting loop
    int i = 0;
    while (i < 5)
    {
        Print(i);
        i++;
    }
    // Output: 0, 1, 2, 3, 4

    // Infinite loop with break
    int x = 0;
    while (true)
    {
        if (x == 3)
        {
            break;
        }
        Print(x);
        x++;
    }
    // Output: 0, 1, 2
}
#include CloseAUT Console mode do...while DoubleClick Execute Fail File for GetAUTFileVersion GetAUTProductVersion GetAUTQtVersion GetAUTSuspectedCompiler GetAUTSuspectedFramework GetCurrentWorkingDir GetName GetProcessID GetProcessIDHandle GetQtProperty GetText GetValue Handle HasFocus IsAUT64Bit IsChecked IsEnabled IsVisible LeftMouseClick LeftMouseDown LeftMouseUp MiddleMouseDown MiddleMouseUp MouseWheel Pass Predefined Constants Print RightMouseClick RightMouseDown RightMouseUp Script Language SendKeys SendMessage SetFocus SetQtProperty ShellProcess Sleep StartAUT string TerminateProcess TimerStart TimerStop TimerVerifyLess vec2d VerifyContains VerifyEndsWith VerifyEqual VerifyExists VerifyGreater VerifyLess VerifyNotEqual VerifyNotExists VerifyScreenCompareEdgeBased VerifyScreenComparePixelExact VerifyStartsWith while