floatingRegions method

Class: SeleniumCheckSettingsPlatform: Selenium 4Language: JavaScript SDK:

Define multiple floating regions for this target.

Syntax


eyes.check(Target.window().floatingRegions(maxOffset, regionsOrContainers))

Parameters

maxOffset
Type:number
The maximum amount that the region can shift in any direction and still be considered matching.
regionsOrContainers
Type:<b>...</b> GetFloatingRegion|<a class ='link' href='/Content/api/eyes-sdk/index-gen/class-region-selenium4-javascript.htm'>Region</a>|By|WebElement|EyesWebElement
One or more regions or containers.

Return value

Type: <a class ='link' href='/Content/api/eyes-sdk/index-gen/class-checksettings-selenium4-javascript.htm'>SeleniumCheckSettings</a>
The value returned is the object that called the method. You can use it to call other methods supported by the object class.