Ignore method

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

Add one or more ignore regions to this target (i.e. areas whose content matches anything).

Syntax


eyes.Check(Target.Window().Ignore(selector, selectors))
eyes.Check(Target.Window().Ignore(selectors))
eyes.Check(Target.Window().Ignore(element, elements))
eyes.Check(Target.Window().Ignore(elements))
eyes.Check(Target.Window().Ignore(region, regions))
eyes.Check(Target.Window().Ignore(regions))

Parameters

selector
Type:By
An object that defines a selector for the region.
selectors
Type:params By[]
one or more selectors separated by commas.
selectors
Type:IEnumerable<By>
An array of selector objects that define regions.
element
Type:IWebElement
An object whose area defines the area for the region.
elements
Type:params IWebElement[]
Zero or more additional objects, each of which defines an isolated region in the window.
elements
Type:IEnumerable<IWebElement>
An array of objects, each of which defines a region.
region
Type:Rectangle
An object that defines a rectangular area in the window.
regions
Type:params Rectangle[]
regions
Type:IEnumerable<Rectangle>
An array of rectangle objects, each of which defines a region.

Return value

Type: SeleniumCheckSettings
The value returned is the object that called the method. You can use it to call other methods supported by the object class.

Remarks

You may call this method multiple times in a given chain. Ignore regions should not overlap each other or other types of regions such as floating or match level regions.