region method

Class: TargetPlatform: Selenium 3Language: Python SDK:

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))

Parameters

region
Type:Region
The region to be checked.
css_selector
Type:CssSelector
Any legal CSS selector, for example .myClass
CssSelector
The type CssSelector is defined as: Text
element
Type:AnyWebElement
An object which defines a region.
AnyWebElement
The type AnyWebElement is defined as: Union[EyesWebElement,WebElement]
by_selector
Type:BySelector
BySelector
The type BySelector is defined as: List[SeleniumBy,Text]

Return value

Type: SeleniumCheckSettings