region method
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.
- 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