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);
}