Package com.applitools.eyes.fluent
Class CheckSettings
java.lang.Object
com.applitools.eyes.fluent.CheckSettings
- All Implemented Interfaces:
ICheckSettingsInternal,ICheckSettings,ICheckSettingsInternal
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedCheckSettings(com.applitools.eyes.Region region) CheckSettings(Integer retryTimeout) For internal use only. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaccessibility(GetRegion accessibilityRegionProvider) accessibility(com.applitools.eyes.Region region, AccessibilityRegionType regionType) protected voidaccessibility_(GetRegion accessibilityRegionProvider) protected voidaccessibility_(com.applitools.eyes.Region rect, AccessibilityRegionType regionType) autProxy(com.applitools.eyes.AutProxySettings autProxy) clone()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.protected voidprotected voidcontent_(com.applitools.eyes.Region region) 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.protected ICheckSettingsdynamic(com.applitools.eyes.Region region, DynamicTextType... textTypes) protected voiddynamic_(IGetDynamicTextType regionProvider) protected voiddynamic_(com.applitools.eyes.Region region, DynamicTextType... textTypes) enablePatterns(Boolean enablePatterns) exact()Shortcut to set the match level toMatchLevel.EXACT.floating(int maxOffset, com.applitools.eyes.Region... regions) Adds a floating region.protected voidfloating(com.applitools.eyes.Region region, int maxUpOffset, int maxDownOffset, int maxLeftOffset, int maxRightOffset) Adds a floating region.protected voidfloating_(com.applitools.eyes.Region region, int maxUpOffset, int maxDownOffset, int maxLeftOffset, int maxRightOffset) 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.com.applitools.eyes.AutProxySettingsgetName()Internal Usagecom.applitools.eyes.RegionList<com.applitools.eyes.visualgrid.model.VisualGridOption> hideScrollBars(Boolean hideScrollBars) 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.protected voidprotected voidignore_(com.applitools.eyes.Region region) 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) isUseDom()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.protected voidprotected voidlayout_(com.applitools.eyes.Region region) layoutBreakpoints(int[] breakpoints) 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.ocrRegion(BaseOcrRegion ocrRegion) protected voidpopulateClone(CheckSettings clone) region(com.applitools.eyes.Region region) scriptHook(String hook) Deprecated.sendDom()setAccessibilityValidation(AccessibilitySettings accessibilitySettings) setDisableBrowserFetching(Boolean disableBrowserFetching) setHideCaret(Boolean hideCaret) Deprecated.setHideScrollBars(Boolean hideScrollBars) Deprecated.setLayoutBreakpoints(int... breakpoints) Deprecated.setLayoutBreakpoints(Boolean shouldSet) Deprecated.setLayoutBreakpoints(Integer... breakpoints) Deprecated.setOverlap(Integer overlap) voidsetStitchContent(boolean stitchContent) stitchMode(StitchMode stitchMode) stitchOverlap(StitchOverlap stitchOverlap) stitchOverlap(Integer overlap) 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.protected voidprotected voidstrict_(com.applitools.eyes.Region region) Defines the timeout to use when acquiring and comparing screenshots.protected voidupdateTargetRegion(com.applitools.eyes.Region region) variationGroupId(String variationGroupId) visualGridOptions(com.applitools.eyes.visualgrid.model.VisualGridOption... options) waitBeforeCapture(Integer milliSec) waits before every screenshot capturing.A setter for the checkpoint name.
-
Field Details
-
BEFORE_CAPTURE_SCREENSHOT
- See Also:
-
ignoreDisplacements
-
name
-
pageId
-
ignoreRegions
-
layoutRegions
-
strictRegions
-
contentRegions
-
floatingRegions
-
accessibilityRegions
-
dynamicRegions
-
sendDom
-
useDom
-
enablePatterns
-
scriptHooks
-
-
Constructor Details
-
CheckSettings
protected CheckSettings() -
CheckSettings
protected CheckSettings(com.applitools.eyes.Region region) -
CheckSettings
For internal use only.- Parameters:
retryTimeout- timeout
-
-
Method Details
-
ignore_
protected void ignore_(com.applitools.eyes.Region region) -
ignore_
-
layout_
protected void layout_(com.applitools.eyes.Region region) -
layout_
-
content_
protected void content_(com.applitools.eyes.Region region) -
content_
-
strict_
protected void strict_(com.applitools.eyes.Region region) -
strict_
-
floating_
protected void floating_(com.applitools.eyes.Region region, int maxUpOffset, int maxDownOffset, int maxLeftOffset, int maxRightOffset) -
dynamic_
-
dynamic_
-
floating
-
clone
- Specified by:
clonein interfaceICheckSettingsInternal- Overrides:
clonein classObject
-
isStitchContent
- Specified by:
isStitchContentin interfaceICheckSettingsInternal
-
ignore
public ICheckSettings ignore(com.applitools.eyes.Region region, com.applitools.eyes.Region... regions) Adds one or more ignore regions.- Specified by:
ignorein interfaceICheckSettings- 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.- Specified by:
ignorein interfaceICheckSettings- Parameters:
regions- An array of regions to ignore when validating the screenshot.- Returns:
- An updated clone of this settings object.
-
layout
public ICheckSettings layout(com.applitools.eyes.Region region, com.applitools.eyes.Region... regions) Adds one or more layout regions.- Specified by:
layoutin interfaceICheckSettings- 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.- Specified by:
layoutin interfaceICheckSettings- Parameters:
regions- An array of regions to match using the Layout method.- Returns:
- An updated clone of this settings object.
-
strict
public ICheckSettings strict(com.applitools.eyes.Region region, com.applitools.eyes.Region... regions) Adds one or more strict regions.- Specified by:
strictin interfaceICheckSettings- 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.- Specified by:
strictin interfaceICheckSettings- Parameters:
regions- An array of regions to match using the Strict method.- Returns:
- An updated clone of this settings object.
-
content
public ICheckSettings content(com.applitools.eyes.Region region, com.applitools.eyes.Region... regions) Adds one or more content regions.- Specified by:
contentin interfaceICheckSettings- 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.- Specified by:
contentin interfaceICheckSettings- Parameters:
regions- An array of regions to match using the Content method.- Returns:
- An updated clone of this settings object.
-
fully
Defines that the screenshot will contain the entire element or region, even if it's outside the view.- Specified by:
fullyin interfaceICheckSettings- 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.- Specified by:
fullyin interfaceICheckSettings- 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.- Specified by:
floatingin interfaceICheckSettings- 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
public 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.- Specified by:
floatingin interfaceICheckSettings- 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.- Specified by:
timeoutin interfaceICheckSettings- Parameters:
timeoutMilliseconds- The timeout to use in milliseconds.- Returns:
- An updated clone of this settings object.
-
layout
Shortcut to set the match level toMatchLevel.LAYOUT.- Specified by:
layoutin interfaceICheckSettings- Returns:
- An updated clone of this settings object.
-
dynamic
Description copied from interface:ICheckSettingsShortcut to set the match level toMatchLevel.DYNAMIC.- Specified by:
dynamicin interfaceICheckSettings- Returns:
- An updated clone of this settings object.
-
exact
Shortcut to set the match level toMatchLevel.EXACT.- Specified by:
exactin interfaceICheckSettings- Returns:
- An updated clone of this settings object.
-
strict
Shortcut to set the match level toMatchLevel.STRICT.- Specified by:
strictin interfaceICheckSettings- Returns:
- An updated clone of this settings object.
-
content
Shortcut to set the match level toMatchLevel.CONTENT.- Specified by:
contentin interfaceICheckSettings- Returns:
- An updated clone of this settings object.
-
ignoreColors
-
matchLevel
Set the match level by which to compare the screenshot.- Specified by:
matchLevelin interfaceICheckSettings- 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.- Specified by:
ignoreCaretin interfaceICheckSettings- Parameters:
ignoreCaret- Whether or not to detect and ignore a blinking caret in the screenshot.- Returns:
- An updated clone of this settings object.
-
ignoreCaret
Defines to ignore a blinking caret in the screenshot.- Specified by:
ignoreCaretin interfaceICheckSettings- Returns:
- An updated clone of this settings object.
-
withName
A setter for the checkpoint name.- Specified by:
withNamein interfaceICheckSettings- Parameters:
name- A name by which to identify the checkpoint.- Returns:
- An updated clone of this settings object.
-
isSendDom
- Specified by:
isSendDomin interfaceICheckSettingsInternal- Specified by:
isSendDomin interfaceICheckSettingsInternal
-
isIgnoreDisplacements
- Specified by:
isIgnoreDisplacementsin interfaceICheckSettingsInternal- Specified by:
isIgnoreDisplacementsin interfaceICheckSettingsInternal
-
isUseDom
- Specified by:
isUseDomin interfaceICheckSettingsInternal- Specified by:
isUseDomin interfaceICheckSettingsInternal
-
useDom
- Specified by:
useDomin interfaceICheckSettings
-
sendDom
- Specified by:
sendDomin interfaceICheckSettings
-
sendDom
- Specified by:
sendDomin interfaceICheckSettings
-
getTargetRegion
public com.applitools.eyes.Region getTargetRegion()- Specified by:
getTargetRegionin interfaceICheckSettingsInternal
-
getTimeout
- Specified by:
getTimeoutin interfaceICheckSettingsInternal
-
getStitchContent
- Specified by:
getStitchContentin interfaceICheckSettingsInternal
-
getMatchLevel
- Specified by:
getMatchLevelin interfaceICheckSettingsInternal
-
getIgnoreRegions
- Specified by:
getIgnoreRegionsin interfaceICheckSettingsInternal
-
getStrictRegions
- Specified by:
getStrictRegionsin interfaceICheckSettingsInternal
-
getLayoutRegions
- Specified by:
getLayoutRegionsin interfaceICheckSettingsInternal
-
getContentRegions
- Specified by:
getContentRegionsin interfaceICheckSettingsInternal
-
getFloatingRegions
- Specified by:
getFloatingRegionsin interfaceICheckSettingsInternal
-
getIgnoreCaret
- Specified by:
getIgnoreCaretin interfaceICheckSettingsInternal
-
getName
- Specified by:
getNamein interfaceICheckSettingsInternal
-
getScriptHooks
- Specified by:
getScriptHooksin interfaceICheckSettingsInternal
-
getSizeMode
- Specified by:
getSizeModein interfaceICheckSettingsInternal
-
updateTargetRegion
protected void updateTargetRegion(com.applitools.eyes.Region region) -
populateClone
-
setStitchContent
public void setStitchContent(boolean stitchContent) -
isEnablePatterns
- Specified by:
isEnablePatternsin interfaceICheckSettingsInternal
-
enablePatterns
- Specified by:
enablePatternsin interfaceICheckSettings
-
enablePatterns
- Specified by:
enablePatternsin interfaceICheckSettings
-
scriptHook
Deprecated.- Specified by:
scriptHookin interfaceICheckSettings- Specified by:
scriptHookin interfaceICheckSettingsInternal
-
beforeRenderScreenshotHook
- Specified by:
beforeRenderScreenshotHookin interfaceICheckSettings- Specified by:
beforeRenderScreenshotHookin interfaceICheckSettingsInternal
-
ignoreDisplacements
- Specified by:
ignoreDisplacementsin interfaceICheckSettings
-
ignoreDisplacements
- Specified by:
ignoreDisplacementsin interfaceICheckSettings
-
accessibility_
-
accessibility_
-
accessibility
public ICheckSettings accessibility(com.applitools.eyes.Region region, AccessibilityRegionType regionType) - Specified by:
accessibilityin interfaceICheckSettings
-
accessibility
-
getAccessibilityRegions
- Specified by:
getAccessibilityRegionsin interfaceICheckSettingsInternal
-
getDynamicRegions
- Specified by:
getDynamicRegionsin interfaceICheckSettingsInternal
-
ocrRegion
-
getOcrRegion
- Specified by:
getOcrRegionin interfaceICheckSettingsInternal
-
variationGroupId
-
getVariationGroupId
- Specified by:
getVariationGroupIdin interfaceICheckSettingsInternal
-
getStepPositionProvider
Internal Usage- Specified by:
getStepPositionProviderin interfaceICheckSettingsInternal
-
visualGridOptions
public ICheckSettings visualGridOptions(com.applitools.eyes.visualgrid.model.VisualGridOption... options) - Specified by:
visualGridOptionsin interfaceICheckSettings
-
isCheckWindow
- Specified by:
isCheckWindowin interfaceICheckSettings
-
waitBeforeCapture
Description copied from interface:ICheckSettingswaits before every screenshot capturing.- Specified by:
waitBeforeCapturein interfaceICheckSettings- Parameters:
milliSec- wait time.- Returns:
- An updated clone of this settings object.
-
getVisualGridOptions
- Specified by:
getVisualGridOptionsin interfaceICheckSettingsInternal
-
isDisableBrowserFetching
- Specified by:
isDisableBrowserFetchingin interfaceICheckSettingsInternal
-
setDisableBrowserFetching
- Specified by:
setDisableBrowserFetchingin interfaceICheckSettingsInternal
-
getWaitBeforeCapture
-
lazyLoad
Description copied from interface:ICheckSettingsto handle lazy load will scroll before capturing- Specified by:
lazyLoadin interfaceICheckSettings- Returns:
- An updated clone of this settings object.
-
lazyLoad
Description copied from interface:ICheckSettingsto handle lazy load will scroll before capturing- Specified by:
lazyLoadin interfaceICheckSettings- Parameters:
lazyLoadOptions- lazy load options- Returns:
- An updated clone of this settings object.
-
getLazyLoadOptions
-
getAutProxy
public com.applitools.eyes.AutProxySettings getAutProxy() -
autProxy
-
getAccessibilityValidation
-
setAccessibilityValidation
-
getStitchMode
-
stitchMode
-
getHideScrollBars
-
hideScrollBars
-
setHideScrollBars
Deprecated. -
getHideCaret
-
hideCaret
-
setHideCaret
Deprecated. -
getOverlap
-
getStitchOverlap
-
setOverlap
-
stitchOverlap
-
stitchOverlap
-
layoutBreakpoints
- Specified by:
layoutBreakpointsin interfaceICheckSettings
-
region
- Specified by:
regionin interfaceICheckSettings
-
layoutBreakpoints
- Specified by:
layoutBreakpointsin interfaceICheckSettings
-
layoutBreakpoints
-
setLayoutBreakpoints
Deprecated. -
setLayoutBreakpoints
Deprecated. -
setLayoutBreakpoints
Deprecated. -
layoutBreakpoints
Description copied from interface:ICheckSettingssets layout breakpoints using options.- Specified by:
layoutBreakpointsin interfaceICheckSettings- Parameters:
layoutBreakpointsOptions- the layout breakpoints options- Returns:
- an updated clone of this settings object
-
isDefaultLayoutBreakpointsSet
-
getLayoutBreakpoints
-
getLayoutBreakpointsOptions
-
pageId
-
getPageId
-
densityMetrics
Description copied from interface:ICheckSettingssets the density metrics for the screenshot- Specified by:
densityMetricsin interfaceICheckSettings- 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
Description copied from interface:ICheckSettingssets the density metrics for the screenshot.- Specified by:
densityMetricsin interfaceICheckSettings- 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
-
getDensityMetrics
-
dynamic
-