setHideScrollbars method

Class: ConfigurationPlatform: Selenium 4Language: JavaScript SDK:

Use this method to set whether Eyes hides the scrollbars before capturing screenshots or not.

This is useful for eliminating false mismatches that are due to differences in the scrollbar position when the checkpoint is captured.

Syntax


let configval = config.setHideScrollbars(value);

Parameters

value
Type:boolean
If set to true then hide the scrollbars. Otherwise, don't hide the scrollbars.

Return value

Type: <a class ='link' href='/Content/api/eyes-sdk/index-gen/class-configuration-selenium4-javascript.htm'>Configuration</a>
The value returned is the object that called the method. This allows you to use a fluent style to call the setXXXX methods of this class.