The information in this topic may be out of date. The current SDK reference guide has moved here.
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(css_selector))
eyes.check(Target.region(element))
eyes.check(Target.region(by_selector))
Note: This method is a static method.
Parameters
- region
- Type:Region
- The region to be checked.
- css_selector
- Type:CssSelector
- Any legal CSS selector, for example .myClass
Type definitions
- CssSelector
- The type CssSelector is defined as: Text.
- element
- Type:AnyWebElement
- An object which defines a region.
Type definitions
- AnyWebElement
- The type AnyWebElement is defined as: Union[EyesWebElement,WebElement].
- by_selector
- Type:BySelector
- Any legal Selenium By request passed as a dictionary, for example [By.TAG_NAME, "p"]
Type definitions
- BySelector
- The type BySelector is defined as: List[SeleniumBy,Text].
Return value
- Type: SeleniumCheckSettings