Region method

Class: TargetPlatform: Selenium 3Language: C# SDK:

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

Syntax


eyes.Check(Target.Region(rect))
eyes.Check(Target.Region(element))
eyes.Check(Target.Region(by))

Parameters

rect
Type:Rectangle
An object that defines a rectangular area in the window.
element
Type:IWebElement
An object which defines a region.
by
Type:By
An element selector which is chosen using the Selenium By class.

Return value

Type: SeleniumCheckSettings