Package com.applitools
Interface ICheckSettings
- All Known Implementing Classes:
CheckSettings
public interface ICheckSettings
The interface of the match settings object.
-
Method Summary
Modifier and TypeMethodDescriptionaccessibility(com.applitools.eyes.Region region, AccessibilityRegionType regionType) beforeRenderScreenshotHook(String scriptHook) content()Shortcut to set the match level toMatchLevel.CONTENT.content(com.applitools.eyes.Region[] regions) Adds one or more content regions.content(com.applitools.eyes.Region region, com.applitools.eyes.Region... regions) Adds one or more content regions.densityMetrics(int xDpi, int yDpi) sets the density metrics for the screenshotdensityMetrics(int xDpi, int yDpi, Double scaleRatio) sets the density metrics for the screenshot.dynamic()Shortcut to set the match level toMatchLevel.DYNAMIC.enablePatterns(Boolean enablePatterns) exact()Shortcut to set the match level toMatchLevel.EXACT.floating(int maxOffset, com.applitools.eyes.Region... regions) Adds a floating region.floating(com.applitools.eyes.Region region, int maxUpOffset, int maxDownOffset, int maxLeftOffset, int maxRightOffset) Adds a floating region.fully()Defines that the screenshot will contain the entire element or region, even if it's outside the view.Defines whether the screenshot will contain the entire element or region, even if it's outside the view.ignore(com.applitools.eyes.Region[] regions) Adds one or more ignore regions.ignore(com.applitools.eyes.Region region, com.applitools.eyes.Region... regions) Adds one or more ignore regions.Defines to ignore a blinking caret in the screenshot.ignoreCaret(Boolean ignoreCaret) Defines if to detect and ignore a blinking caret in the screenshot.ignoreDisplacements(Boolean ignoreDisplacements) layout()Shortcut to set the match level toMatchLevel.LAYOUT.layout(com.applitools.eyes.Region[] regions) Adds one or more layout regions.layout(com.applitools.eyes.Region region, com.applitools.eyes.Region... regions) Adds one or more layout regions.layoutBreakpoints(LayoutBreakpointsOptions layoutBreakpointsOptions) sets layout breakpoints using options.layoutBreakpoints(Boolean shouldSet) layoutBreakpoints(Integer... breakpoints) lazyLoad()to handle lazy load will scroll before capturinglazyLoad(LazyLoadOptions lazyLoadOptions) to handle lazy load will scroll before capturingmatchLevel(MatchLevel matchLevel) Set the match level by which to compare the screenshot.region(com.applitools.eyes.Region region) scriptHook(String scriptHook) sendDom()strict()Shortcut to set the match level toMatchLevel.STRICT.strict(com.applitools.eyes.Region[] regions) Adds one or more strict regions.strict(com.applitools.eyes.Region region, com.applitools.eyes.Region... regions) Adds one or more strict regions.Defines the timeout to use when acquiring and comparing screenshots.visualGridOptions(com.applitools.eyes.visualgrid.model.VisualGridOption... options) waitBeforeCapture(Integer milliSec) waits before every screenshot capturing.A setter for the checkpoint name.
-
Method Details
-
ignore
Adds one or more ignore regions.- Parameters:
region- A region to ignore when validating the screenshot.regions- Optional extra regions to ignore when validating the screenshot.- Returns:
- An updated clone of this settings object.
-
ignore
Adds one or more ignore regions.- Parameters:
regions- An array of regions to ignore when validating the screenshot.- Returns:
- An updated clone of this settings object.
-
layout
Adds one or more layout regions.- Parameters:
region- A region to match using the Layout method.regions- Optional extra regions to match using the Layout method.- Returns:
- An updated clone of this settings object.
-
layout
Adds one or more layout regions.- Parameters:
regions- An array of regions to match using the Layout method.- Returns:
- An updated clone of this settings object.
-
strict
Adds one or more strict regions.- Parameters:
region- A region to match using the Strict method.regions- Optional extra regions to match using the Strict method.- Returns:
- An updated clone of this settings object.
-
strict
Adds one or more strict regions.- Parameters:
regions- An array of regions to match using the Strict method.- Returns:
- An updated clone of this settings object.
-
content
Adds one or more content regions.- Parameters:
region- A region to match using the Content method.regions- Optional extra regions to match using the Content method.- Returns:
- An updated clone of this settings object.
-
content
Adds one or more content regions.- Parameters:
regions- An array of regions to match using the Content method.- Returns:
- An updated clone of this settings object.
-
fully
ICheckSettings fully()Defines that the screenshot will contain the entire element or region, even if it's outside the view.- Returns:
- An updated clone of this settings object.
-
fully
Defines whether the screenshot will contain the entire element or region, even if it's outside the view.- Parameters:
fully- defines whether the screenshot will contain the entire element or region.- Returns:
- An updated clone of this settings object.
-
floating
Adds a floating region. A floating region is a a region that can be placed within the boundaries of a bigger region.- Parameters:
maxOffset- How much each of the content rectangles can move in any direction.regions- One or more content rectangles.- Returns:
- An updated clone of this settings object.
-
floating
ICheckSettings floating(com.applitools.eyes.Region region, int maxUpOffset, int maxDownOffset, int maxLeftOffset, int maxRightOffset) Adds a floating region. A floating region is a a region that can be placed within the boundaries of a bigger region.- Parameters:
region- The content rectangle.maxUpOffset- How much the content can move up.maxDownOffset- How much the content can move down.maxLeftOffset- How much the content can move to the left.maxRightOffset- How much the content can move to the right.- Returns:
- An updated clone of this settings object.
-
timeout
Defines the timeout to use when acquiring and comparing screenshots.- Parameters:
timeoutMilliseconds- The timeout to use in milliseconds.- Returns:
- An updated clone of this settings object.
-
layout
ICheckSettings layout()Shortcut to set the match level toMatchLevel.LAYOUT.- Returns:
- An updated clone of this settings object.
-
dynamic
ICheckSettings dynamic()Shortcut to set the match level toMatchLevel.DYNAMIC.- Returns:
- An updated clone of this settings object.
-
exact
ICheckSettings exact()Shortcut to set the match level toMatchLevel.EXACT.- Returns:
- An updated clone of this settings object.
-
strict
ICheckSettings strict()Shortcut to set the match level toMatchLevel.STRICT.- Returns:
- An updated clone of this settings object.
-
content
ICheckSettings content()Shortcut to set the match level toMatchLevel.CONTENT.- Returns:
- An updated clone of this settings object.
-
matchLevel
Set the match level by which to compare the screenshot.- Parameters:
matchLevel- The match level to use.- Returns:
- An updated clone of this settings object.
-
ignoreCaret
Defines if to detect and ignore a blinking caret in the screenshot.- Parameters:
ignoreCaret- Whether or not to detect and ignore a blinking caret in the screenshot.- Returns:
- An updated clone of this settings object.
-
ignoreCaret
ICheckSettings ignoreCaret()Defines to ignore a blinking caret in the screenshot.- Returns:
- An updated clone of this settings object.
-
withName
A setter for the checkpoint name.- Parameters:
name- A name by which to identify the checkpoint.- Returns:
- An updated clone of this settings object.
-
useDom
-
sendDom
-
sendDom
ICheckSettings sendDom() -
enablePatterns
-
enablePatterns
ICheckSettings enablePatterns() -
scriptHook
-
beforeRenderScreenshotHook
-
ignoreDisplacements
-
ignoreDisplacements
ICheckSettings ignoreDisplacements() -
accessibility
-
visualGridOptions
-
isCheckWindow
Boolean isCheckWindow() -
waitBeforeCapture
waits before every screenshot capturing.- Parameters:
milliSec- wait time.- Returns:
- An updated clone of this settings object.
-
lazyLoad
ICheckSettings lazyLoad()to handle lazy load will scroll before capturing- Returns:
- An updated clone of this settings object.
-
lazyLoad
to handle lazy load will scroll before capturing- Parameters:
lazyLoadOptions- lazy load options- Returns:
- An updated clone of this settings object.
-
densityMetrics
sets the density metrics for the screenshot- Parameters:
xDpi- the exact physical pixels per inch of the screen in the X dimensionyDpi- the exact physical pixels per inch of the screen in the Y dimension- Returns:
- @return An updated clone of this settings object
-
densityMetrics
sets the density metrics for the screenshot.- Parameters:
xDpi- the exact physical pixels per inch of the screen in the X dimensionyDpi- the exact physical pixels per inch of the screen in the Y dimensionscaleRatio- the scale ratio- Returns:
- @return An updated clone of this settings object
-
layoutBreakpoints
sets layout breakpoints using options.- Parameters:
layoutBreakpointsOptions- the layout breakpoints options- Returns:
- an updated clone of this settings object
-
layoutBreakpoints
-
layoutBreakpoints
-
region
-