VerifyScreenComparePixelExact
void VerifyScreenComparePixelExact(string ctrl,string screenshotSelector,
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.
- screenshotSelector - The screenshot key to compare against (e.g. "default", "cmp01").
- 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", "default");
VerifyScreenComparePixelExact("MAIN_WINDOW", "cmp01", 0.02, 15);
}