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.

VerifyScreenCompareEdgeBased

void VerifyScreenCompareEdgeBased(string ctrl,
float tolerance = 0.04,
int blurRadius = 2,
int edgeBlurRadius = 2)

Description
Compares the current visual appearance of the specified control with its reference image using a robust edge-based comparison algorithm.
This method focuses on visual structure rather than pixel-perfect color accuracy.   It is more tolerant to anti-aliasing, slight rendering shifts, compression artifacts, and sub-pixel differences.

Parameters
- ctrl - The control to compare.
- tolerance - (optional) Maximum allowed structural edge difference      between the current and reference image (default = 0.04).
- blurRadius - (optional) Pre-blur radius applied before edge detection      to reduce noise and anti-aliasing effects (default = 2).
- edgeBlurRadius - (optional) Post-processing blur radius applied to the      edge map to increase tolerance against minor pixel shifts      and rendering variations (default = 2).

Example
void main()
{
    VerifyScreenCompareEdgeBased("BUTTON_OK");
    VerifyScreenCompareEdgeBased("MAIN_WINDOW", 0.05, 3, 3);
}
#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