public class CheckSettings extends Object implements ICheckSettings, ICheckSettingsInternal
| Modifier and Type | Field and Description |
|---|---|
protected List<GetRegion> |
accessibilityRegions |
protected static String |
BEFORE_CAPTURE_SCREENSHOT |
protected List<GetRegion> |
contentRegions |
protected Boolean |
enablePatterns |
protected List<GetRegion> |
floatingRegions |
protected Boolean |
ignoreDisplacements |
protected List<GetRegion> |
ignoreRegions |
protected List<GetRegion> |
layoutRegions |
protected String |
name |
protected String |
pageId |
protected Map<String,String> |
scriptHooks |
protected Boolean |
sendDom |
protected List<GetRegion> |
strictRegions |
protected Boolean |
useDom |
| Modifier | Constructor and Description |
|---|---|
protected |
CheckSettings() |
|
CheckSettings(Integer retryTimeout)
For internal use only.
|
protected |
CheckSettings(com.applitools.eyes.Region region) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
accessibility_(GetRegion accessibilityRegionProvider) |
protected void |
accessibility_(com.applitools.eyes.Region rect,
AccessibilityRegionType regionType) |
protected void |
accessibility(GetRegion accessibilityRegionProvider) |
ICheckSettings |
accessibility(com.applitools.eyes.Region region,
AccessibilityRegionType regionType) |
ICheckSettings |
autProxy(com.applitools.eyes.AutProxySettings autProxy) |
ICheckSettings |
beforeRenderScreenshotHook(String hook) |
CheckSettings |
clone() |
protected void |
content_(GetRegion regionProvider) |
protected void |
content_(com.applitools.eyes.Region region) |
ICheckSettings |
content()
Shortcut to set the match level to
MatchLevel.CONTENT. |
ICheckSettings |
content(com.applitools.eyes.Region[] regions)
Adds one or more content regions.
|
ICheckSettings |
content(com.applitools.eyes.Region region,
com.applitools.eyes.Region... regions)
Adds one or more content regions.
|
ICheckSettings |
densityMetrics(int xDpi,
int yDpi)
sets the density metrics for the screenshot
|
ICheckSettings |
densityMetrics(int xDpi,
int yDpi,
Double scaleRatio)
sets the density metrics for the screenshot.
|
ICheckSettings |
enablePatterns() |
ICheckSettings |
enablePatterns(Boolean enablePatterns) |
ICheckSettings |
exact()
Shortcut to set the match level to
MatchLevel.EXACT. |
protected void |
floating_(com.applitools.eyes.Region region,
int maxUpOffset,
int maxDownOffset,
int maxLeftOffset,
int maxRightOffset) |
protected void |
floating(GetRegion regionProvider) |
ICheckSettings |
floating(int maxOffset,
com.applitools.eyes.Region... regions)
Adds a floating region.
|
ICheckSettings |
floating(com.applitools.eyes.Region region,
int maxUpOffset,
int maxDownOffset,
int maxLeftOffset,
int maxRightOffset)
Adds a floating region.
|
ICheckSettings |
fully()
Defines that the screenshot will contain the entire element or region, even if it's outside the view.
|
ICheckSettings |
fully(Boolean fully)
Defines whether the screenshot will contain the entire element or region, even if it's outside the view.
|
GetRegion[] |
getAccessibilityRegions() |
AccessibilitySettings |
getAccessibilityValidation() |
com.applitools.eyes.AutProxySettings |
getAutProxy() |
GetRegion[] |
getContentRegions() |
DensityMetrics |
getDensityMetrics() |
GetRegion[] |
getFloatingRegions() |
Boolean |
getHideCaret() |
Boolean |
getHideScrollBars() |
Boolean |
getIgnoreCaret() |
GetRegion[] |
getIgnoreRegions() |
List<Integer> |
getLayoutBreakpoints() |
GetRegion[] |
getLayoutRegions() |
LazyLoadOptions |
getLazyLoadOptions() |
MatchLevel |
getMatchLevel() |
String |
getName() |
BaseOcrRegion |
getOcrRegion() |
Integer |
getOverlap() |
String |
getPageId() |
Map<String,String> |
getScriptHooks() |
String |
getSizeMode() |
PositionProvider |
getStepPositionProvider()
Internal Usage
|
Boolean |
getStitchContent() |
StitchMode |
getStitchMode() |
GetRegion[] |
getStrictRegions() |
com.applitools.eyes.Region |
getTargetRegion() |
Integer |
getTimeout() |
String |
getVariationGroupId() |
List<VisualGridOption> |
getVisualGridOptions() |
Integer |
getWaitBeforeCapture() |
protected void |
ignore_(GetRegion regionProvider) |
protected void |
ignore_(com.applitools.eyes.Region region) |
ICheckSettings |
ignore(com.applitools.eyes.Region[] regions)
Adds one or more ignore regions.
|
ICheckSettings |
ignore(com.applitools.eyes.Region region,
com.applitools.eyes.Region... regions)
Adds one or more ignore regions.
|
ICheckSettings |
ignoreCaret()
Defines to ignore a blinking caret in the screenshot.
|
ICheckSettings |
ignoreCaret(Boolean ignoreCaret)
Defines if to detect and ignore a blinking caret in the screenshot.
|
ICheckSettings |
ignoreColors() |
ICheckSettings |
ignoreDisplacements() |
ICheckSettings |
ignoreDisplacements(Boolean ignoreDisplacements) |
Boolean |
isCheckWindow() |
Boolean |
isDefaultLayoutBreakpointsSet() |
Boolean |
isDisableBrowserFetching() |
Boolean |
isEnablePatterns() |
Boolean |
isIgnoreDisplacements() |
Boolean |
isSendDom() |
Boolean |
isStitchContent() |
Boolean |
isUseDom() |
protected void |
layout_(GetRegion regionProvider) |
protected void |
layout_(com.applitools.eyes.Region region) |
ICheckSettings |
layout()
Shortcut to set the match level to
MatchLevel.LAYOUT. |
ICheckSettings |
layout(com.applitools.eyes.Region[] regions)
Adds one or more layout regions.
|
ICheckSettings |
layout(com.applitools.eyes.Region region,
com.applitools.eyes.Region... regions)
Adds one or more layout regions.
|
ICheckSettings |
lazyLoad()
to handle lazy load will scroll before capturing
|
ICheckSettings |
lazyLoad(LazyLoadOptions lazyLoadOptions)
to handle lazy load will scroll before capturing
|
ICheckSettings |
matchLevel(MatchLevel matchLevel)
Set the match level by which to compare the screenshot.
|
ICheckSettings |
ocrRegion(BaseOcrRegion ocrRegion) |
ICheckSettings |
pageId(String pageId) |
protected void |
populateClone(CheckSettings clone) |
ICheckSettings |
scriptHook(String hook)
Deprecated.
|
ICheckSettings |
sendDom() |
ICheckSettings |
sendDom(Boolean sendDom) |
ICheckSettings |
setAccessibilityValidation(AccessibilitySettings accessibilitySettings) |
ICheckSettings |
setDisableBrowserFetching(Boolean disableBrowserFetching) |
ICheckSettings |
setHideCaret(Boolean hideCaret) |
ICheckSettings |
setHideScrollBars(Boolean hideScrollBars) |
ICheckSettings |
setLayoutBreakpoints(Boolean shouldSet) |
ICheckSettings |
setLayoutBreakpoints(int... breakpoints) |
ICheckSettings |
setOverlap(Integer overlap) |
void |
setStitchContent(boolean stitchContent) |
ICheckSettings |
stitchMode(StitchMode stitchMode) |
ICheckSettings |
stitchOverlap(Integer overlap) |
ICheckSettings |
stitchOverlap(StitchOverlap stitchOverlap) |
protected void |
strict_(GetRegion regionProvider) |
protected void |
strict_(com.applitools.eyes.Region region) |
ICheckSettings |
strict()
Shortcut to set the match level to
MatchLevel.STRICT. |
ICheckSettings |
strict(com.applitools.eyes.Region[] regions)
Adds one or more strict regions.
|
ICheckSettings |
strict(com.applitools.eyes.Region region,
com.applitools.eyes.Region... regions)
Adds one or more strict regions.
|
ICheckSettings |
timeout(Integer timeoutMilliseconds)
Defines the timeout to use when acquiring and comparing screenshots.
|
protected void |
updateTargetRegion(com.applitools.eyes.Region region) |
ICheckSettings |
useDom(Boolean useDom) |
ICheckSettings |
variationGroupId(String variationGroupId) |
ICheckSettings |
visualGridOptions(VisualGridOption... options) |
ICheckSettings |
waitBeforeCapture(Integer milliSec)
waits before every screenshot capturing.
|
ICheckSettings |
withName(String name)
A setter for the checkpoint name.
|
protected static final String BEFORE_CAPTURE_SCREENSHOT
protected Boolean ignoreDisplacements
protected String name
protected String pageId
protected Boolean sendDom
protected Boolean useDom
protected Boolean enablePatterns
protected CheckSettings()
protected CheckSettings(com.applitools.eyes.Region region)
public CheckSettings(Integer retryTimeout)
retryTimeout - timeoutprotected void ignore_(com.applitools.eyes.Region region)
protected void ignore_(GetRegion regionProvider)
protected void layout_(com.applitools.eyes.Region region)
protected void layout_(GetRegion regionProvider)
protected void content_(com.applitools.eyes.Region region)
protected void content_(GetRegion regionProvider)
protected void strict_(com.applitools.eyes.Region region)
protected void strict_(GetRegion regionProvider)
protected void floating_(com.applitools.eyes.Region region,
int maxUpOffset,
int maxDownOffset,
int maxLeftOffset,
int maxRightOffset)
protected void floating(GetRegion regionProvider)
public CheckSettings clone()
clone in interface ICheckSettingsInternalclone in class Objectpublic Boolean isStitchContent()
isStitchContent in interface ICheckSettingsInternalpublic ICheckSettings ignore(com.applitools.eyes.Region region, com.applitools.eyes.Region... regions)
ignore in interface ICheckSettingsregion - A region to ignore when validating the screenshot.regions - Optional extra regions to ignore when validating the screenshot.public ICheckSettings ignore(com.applitools.eyes.Region[] regions)
ignore in interface ICheckSettingsregions - An array of regions to ignore when validating the screenshot.public ICheckSettings layout(com.applitools.eyes.Region region, com.applitools.eyes.Region... regions)
layout in interface ICheckSettingsregion - A region to match using the Layout method.regions - Optional extra regions to match using the Layout method.public ICheckSettings layout(com.applitools.eyes.Region[] regions)
layout in interface ICheckSettingsregions - An array of regions to match using the Layout method.public ICheckSettings strict(com.applitools.eyes.Region region, com.applitools.eyes.Region... regions)
strict in interface ICheckSettingsregion - A region to match using the Strict method.regions - Optional extra regions to match using the Strict method.public ICheckSettings strict(com.applitools.eyes.Region[] regions)
strict in interface ICheckSettingsregions - An array of regions to match using the Strict method.public ICheckSettings content(com.applitools.eyes.Region region, com.applitools.eyes.Region... regions)
content in interface ICheckSettingsregion - A region to match using the Content method.regions - Optional extra regions to match using the Content method.public ICheckSettings content(com.applitools.eyes.Region[] regions)
content in interface ICheckSettingsregions - An array of regions to match using the Content method.public ICheckSettings fully()
fully in interface ICheckSettingspublic ICheckSettings fully(Boolean fully)
fully in interface ICheckSettingsfully - defines whether the screenshot will contain the entire element or region.public ICheckSettings floating(int maxOffset, com.applitools.eyes.Region... regions)
floating in interface ICheckSettingsmaxOffset - How much each of the content rectangles can move in any direction.regions - One or more content rectangles.public ICheckSettings floating(com.applitools.eyes.Region region, int maxUpOffset, int maxDownOffset, int maxLeftOffset, int maxRightOffset)
floating in interface ICheckSettingsregion - 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.public ICheckSettings timeout(Integer timeoutMilliseconds)
timeout in interface ICheckSettingstimeoutMilliseconds - The timeout to use in milliseconds.public ICheckSettings layout()
MatchLevel.LAYOUT.layout in interface ICheckSettingspublic ICheckSettings exact()
MatchLevel.EXACT.exact in interface ICheckSettingspublic ICheckSettings strict()
MatchLevel.STRICT.strict in interface ICheckSettingspublic ICheckSettings content()
MatchLevel.CONTENT.content in interface ICheckSettingspublic ICheckSettings ignoreColors()
public ICheckSettings matchLevel(MatchLevel matchLevel)
matchLevel in interface ICheckSettingsmatchLevel - The match level to use.public ICheckSettings ignoreCaret(Boolean ignoreCaret)
ignoreCaret in interface ICheckSettingsignoreCaret - Whether or not to detect and ignore a blinking caret in the screenshot.public ICheckSettings ignoreCaret()
ignoreCaret in interface ICheckSettingspublic ICheckSettings withName(String name)
withName in interface ICheckSettingsname - A name by which to identify the checkpoint.public Boolean isSendDom()
isSendDom in interface ICheckSettingsInternalpublic Boolean isIgnoreDisplacements()
isIgnoreDisplacements in interface ICheckSettingsInternalpublic Boolean isUseDom()
isUseDom in interface ICheckSettingsInternalpublic ICheckSettings useDom(Boolean useDom)
useDom in interface ICheckSettingspublic ICheckSettings sendDom(Boolean sendDom)
sendDom in interface ICheckSettingspublic ICheckSettings sendDom()
sendDom in interface ICheckSettingspublic com.applitools.eyes.Region getTargetRegion()
getTargetRegion in interface ICheckSettingsInternalpublic Integer getTimeout()
getTimeout in interface ICheckSettingsInternalpublic Boolean getStitchContent()
public MatchLevel getMatchLevel()
getMatchLevel in interface ICheckSettingsInternalpublic GetRegion[] getIgnoreRegions()
public GetRegion[] getStrictRegions()
public GetRegion[] getLayoutRegions()
public GetRegion[] getContentRegions()
public GetRegion[] getFloatingRegions()
public Boolean getIgnoreCaret()
public String getName()
getName in interface ICheckSettingsInternalpublic Map<String,String> getScriptHooks()
getScriptHooks in interface ICheckSettingsInternalpublic String getSizeMode()
getSizeMode in interface ICheckSettingsInternalprotected void updateTargetRegion(com.applitools.eyes.Region region)
protected void populateClone(CheckSettings clone)
public void setStitchContent(boolean stitchContent)
public Boolean isEnablePatterns()
public ICheckSettings enablePatterns(Boolean enablePatterns)
enablePatterns in interface ICheckSettingspublic ICheckSettings enablePatterns()
enablePatterns in interface ICheckSettings@Deprecated public ICheckSettings scriptHook(String hook)
scriptHook in interface ICheckSettingspublic ICheckSettings beforeRenderScreenshotHook(String hook)
beforeRenderScreenshotHook in interface ICheckSettingspublic ICheckSettings ignoreDisplacements(Boolean ignoreDisplacements)
ignoreDisplacements in interface ICheckSettingspublic ICheckSettings ignoreDisplacements()
ignoreDisplacements in interface ICheckSettingsprotected void accessibility_(GetRegion accessibilityRegionProvider)
protected void accessibility_(com.applitools.eyes.Region rect,
AccessibilityRegionType regionType)
public ICheckSettings accessibility(com.applitools.eyes.Region region, AccessibilityRegionType regionType)
accessibility in interface ICheckSettingsprotected void accessibility(GetRegion accessibilityRegionProvider)
public GetRegion[] getAccessibilityRegions()
public ICheckSettings ocrRegion(BaseOcrRegion ocrRegion)
public BaseOcrRegion getOcrRegion()
public ICheckSettings variationGroupId(String variationGroupId)
public String getVariationGroupId()
public PositionProvider getStepPositionProvider()
public ICheckSettings visualGridOptions(VisualGridOption... options)
visualGridOptions in interface ICheckSettingspublic Boolean isCheckWindow()
isCheckWindow in interface ICheckSettingspublic ICheckSettings waitBeforeCapture(Integer milliSec)
ICheckSettingswaitBeforeCapture in interface ICheckSettingsmilliSec - wait time.public List<VisualGridOption> getVisualGridOptions()
getVisualGridOptions in interface ICheckSettingsInternalpublic Boolean isDisableBrowserFetching()
isDisableBrowserFetching in interface ICheckSettingsInternalpublic ICheckSettings setDisableBrowserFetching(Boolean disableBrowserFetching)
setDisableBrowserFetching in interface ICheckSettingsInternalpublic Integer getWaitBeforeCapture()
public ICheckSettings lazyLoad()
ICheckSettingslazyLoad in interface ICheckSettingspublic ICheckSettings lazyLoad(LazyLoadOptions lazyLoadOptions)
ICheckSettingslazyLoad in interface ICheckSettingslazyLoadOptions - lazy load optionspublic LazyLoadOptions getLazyLoadOptions()
public com.applitools.eyes.AutProxySettings getAutProxy()
public ICheckSettings autProxy(com.applitools.eyes.AutProxySettings autProxy)
public AccessibilitySettings getAccessibilityValidation()
public ICheckSettings setAccessibilityValidation(AccessibilitySettings accessibilitySettings)
public StitchMode getStitchMode()
public ICheckSettings stitchMode(StitchMode stitchMode)
public Boolean getHideScrollBars()
public ICheckSettings setHideScrollBars(Boolean hideScrollBars)
public Boolean getHideCaret()
public ICheckSettings setHideCaret(Boolean hideCaret)
public Integer getOverlap()
public ICheckSettings setOverlap(Integer overlap)
public ICheckSettings stitchOverlap(Integer overlap)
public ICheckSettings stitchOverlap(StitchOverlap stitchOverlap)
public ICheckSettings setLayoutBreakpoints(Boolean shouldSet)
public Boolean isDefaultLayoutBreakpointsSet()
public ICheckSettings setLayoutBreakpoints(int... breakpoints)
public ICheckSettings pageId(String pageId)
public String getPageId()
public ICheckSettings densityMetrics(int xDpi, int yDpi)
ICheckSettingsdensityMetrics in interface ICheckSettingsxDpi - 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 dimensionpublic ICheckSettings densityMetrics(int xDpi, int yDpi, Double scaleRatio)
ICheckSettingsdensityMetrics in interface ICheckSettingsxDpi - 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 ratiopublic DensityMetrics getDensityMetrics()
Copyright © 2023. All rights reserved.