region method

Class: TargetPlatform: Selenium Language: JavaScript

Configure check to match a region or element in a window, instead of the entire window.

Syntax


eyes.check(Target.region(region, frame))

Parameters

region
Type:Region|webdriver.WebElement|EyesRemoteWebElement|webdriver.By
The region to be checked. This can either be a rectangular region object defined as
{left: number, top: number, width: number, height: number}
, or a webelement or By locator.
frame
Type:webdriver.WebElement|EyesRemoteWebElement|string
A representation of the iframe that encloses the region. Pass null if the region is not in a frame.

Return value

Type: Target