setScrollToRegion method

Class: EyesPlatform: Selenium 4Language: JavaScript SDK:

Use this method to set whether or not Eyes scrolls a region into view before capturing the checkpoint.

Syntax


eyes.setScrollToRegion(shouldScroll);

Parameters

shouldScroll
Type:boolean
If set to true, then before a region is matched, Eyes will automatically scroll to the region. If set to false, then Eyes will not scroll.

Return value

Type: