ignore method

Class: SeleniumCheckSettingsPlatform: Selenium 3Language: Python SDK:

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

Syntax


eyes.Check(Target.window().ignore(regions))
eyes.Check(Target.window().ignore(by))
eyes.Check(Target.window().ignore(element))
eyes.Check(Target.window().ignore(css_selector))
eyes.Check(Target.window().ignore(region))

Parameters

regions
Type:<b>*</b><a class ='link' href='/Content/api/eyes-sdk/index-gen/class-region-selenium-python_sdk4.htm'>Region</a>
by
Type:<b>*</b>BySelector
Any legal Selenium By request passed as a dictionary, for example [By.TAG_NAME, "p"]
BySelector
The type BySelector is defined as: List[SeleniumBy,Text]
element
Type:<b>*</b>AnyWebElement
An object whose area defines the area for the region.
AnyWebElement
The type AnyWebElement is defined as: Union[EyesWebElement,WebElement]
css_selector
Type:<b>*</b>CssSelector
Any legal CSS selector, for example .myClass
CssSelector
The type CssSelector is defined as: Text
region
Type:<b>*</b><a class ='link' href='/Content/api/eyes-sdk/index-gen/class-region-selenium-python_sdk4.htm'>Region</a>
An object that defines a rectangular area in the window.

Return value

Type: Self
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.