region method
Configure check to match a region or element in a window, instead of the entire window.
Syntax
eyes.check(Target.region(region))
eyes.check(Target.region(by))
eyes.check(Target.region(webElement))
Parameters
- region
- Type:Region
- The region to be checked.
- by
- Type:By
- An element selector which is chosen using the Selenium By class.
- webElement
- Type:WebElement
- An object which defines a region.
Return value
- Type: SeleniumCheckSettings