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.

VerifyScreenComparePixelExact

void VerifyScreenComparePixelExact(string ctrl,
float tolerance = 0.01,
int colorDelta = 10)

Description
Compares the current visual appearance of the specified control with its reference image.
The comparison passes if the difference is within the defined tolerance and color delta.

Parameters
- ctrl - The control to compare.
- tolerance - (optional) Allowed percentage of differing pixels (default = 0.04).
- colorDelta - (optional) Maximum allowed per-channel color difference (default = 10).

Example
void main()
{
    VerifyScreenComparePixelExact("BUTTON_OK");
    VerifyScreenComparePixelExact("MAIN_WINDOW", 0.02, 15);
}
#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