HideCaret property

Class: ConfigurationPlatform: Selenium 3Language: C# SDK:

This property can be used to set and retrieve whether Eyes should hide the cursor before the screenshot is captured.

If your UI includes a blinking cursor, then sometimes the cursor will be captured in the screenshot, and sometimes it won't be captured. This can lead to differences between the checkpoint and the basline and, therefore, to false mismatch reports. If you enable hiding the curser, Eyes will turn the cursor off before capturing the image, eliminating the possibility that this will happen.

Syntax


bool configval; // give relevant initial value
config.HideCaret  = configval;
configval = config.HideCaret

Type:bool

Remarks

We recommend using this method instead of Eyes.IgnoreCaret, Configuration.SetIgnoreCaret or SeleniumCheckSettings.IgnoreCaret, since this method/property eliminates cursor related artifacts instead of detecting and ignoring them.