public class CheckSettings extends Object implements ICheckSettings, ICheckSettingsInternal
| Modifier and Type | Field and Description |
|---|---|
protected List<GetAccessibilityRegion> |
accessibilityRegions |
protected static String |
BEFORE_CAPTURE_SCREENSHOT |
protected List<GetSimpleRegion> |
contentRegions |
protected Boolean |
enablePatterns |
protected List<GetFloatingRegion> |
floatingRegions |
protected Boolean |
ignoreDisplacements |
protected List<GetSimpleRegion> |
ignoreRegions |
protected List<GetSimpleRegion> |
layoutRegions |
protected String |
name |
protected Map<String,String> |
scriptHooks |
protected Boolean |
sendDom |
protected List<GetSimpleRegion> |
strictRegions |
protected Boolean |
useDom |
| Modifier | Constructor and Description |
|---|---|
protected |
CheckSettings() |
|
CheckSettings(Integer timeout)
For internal use only.
|
protected |
CheckSettings(Region region) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
accessibility_(GetAccessibilityRegion accessibilityRegionProvider) |
protected void |
accessibility_(Region rect,
AccessibilityRegionType regionType) |
protected void |
accessibility(GetAccessibilityRegion accessibilityRegionProvider) |
ICheckSettings |
accessibility(Region region,
AccessibilityRegionType regionType) |
ICheckSettings |
beforeRenderScreenshotHook(String hook) |
CheckSettings |
clone() |
protected void |
content_(GetSimpleRegion regionProvider) |
protected void |
content_(Region region) |
ICheckSettings |
content()
Shortcut to set the match level to
MatchLevel.CONTENT. |
ICheckSettings |
content(Region[] regions)
Adds one or more content regions.
|
ICheckSettings |
content(Region region,
Region... regions)
Adds one or more content regions.
|
ICheckSettings |
enablePatterns() |
ICheckSettings |
enablePatterns(Boolean enablePatterns) |
ICheckSettings |
exact()
Shortcut to set the match level to
MatchLevel.EXACT. |
protected void |
floating_(Region region,
int maxUpOffset,
int maxDownOffset,
int maxLeftOffset,
int maxRightOffset) |
protected void |
floating(GetFloatingRegion regionProvider) |
ICheckSettings |
floating(int maxOffset,
Region... regions)
Adds a floating region.
|
ICheckSettings |
floating(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.
|
GetAccessibilityRegion[] |
getAccessibilityRegions() |
GetSimpleRegion[] |
getContentRegions() |
GetFloatingRegion[] |
getFloatingRegions() |
Boolean |
getIgnoreCaret() |
GetSimpleRegion[] |
getIgnoreRegions() |
GetSimpleRegion[] |
getLayoutRegions() |
MatchLevel |
getMatchLevel() |
String |
getName() |
BaseOcrRegion |
getOcrRegion() |
Map<String,String> |
getScriptHooks() |
String |
getSizeMode() |
PositionProvider |
getStepPositionProvider()
Internal Usage
|
Boolean |
getStitchContent() |
GetSimpleRegion[] |
getStrictRegions() |
Region |
getTargetRegion() |
Integer |
getTimeout() |
String |
getVariationGroupId() |
VisualGridSelector |
getVGTargetSelector() |
List<VisualGridOption> |
getVisualGridOptions() |
protected void |
ignore_(GetSimpleRegion regionProvider) |
protected void |
ignore_(Region region) |
ICheckSettings |
ignore(Region[] regions)
Adds one or more ignore regions.
|
ICheckSettings |
ignore(Region region,
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 |
ignoreDisplacements() |
ICheckSettings |
ignoreDisplacements(Boolean ignoreDisplacements) |
Boolean |
isCheckWindow() |
Boolean |
isDisableBrowserFetching() |
Boolean |
isEnablePatterns() |
Boolean |
isIgnoreDisplacements() |
Boolean |
isSendDom() |
Boolean |
isStitchContent() |
Boolean |
isUseDom() |
protected void |
layout_(GetSimpleRegion regionProvider) |
protected void |
layout_(Region region) |
ICheckSettings |
layout()
Shortcut to set the match level to
MatchLevel.LAYOUT. |
ICheckSettings |
layout(Region[] regions)
Adds one or more layout regions.
|
ICheckSettings |
layout(Region region,
Region... regions)
Adds one or more layout regions.
|
ICheckSettings |
matchLevel(MatchLevel matchLevel)
Set the match level by which to compare the screenshot.
|
ICheckSettings |
ocrRegion(BaseOcrRegion ocrRegion) |
protected void |
populateClone(CheckSettings clone) |
ICheckSettings |
scriptHook(String hook)
Deprecated.
|
ICheckSettings |
sendDom() |
ICheckSettings |
sendDom(Boolean sendDom) |
ICheckSettings |
setDisableBrowserFetching(Boolean disableBrowserFetching) |
void |
setStitchContent(boolean stitchContent) |
protected void |
strict_(GetSimpleRegion regionProvider) |
protected void |
strict_(Region region) |
ICheckSettings |
strict()
Shortcut to set the match level to
MatchLevel.STRICT. |
ICheckSettings |
strict(Region[] regions)
Adds one or more strict regions.
|
ICheckSettings |
strict(Region region,
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(Region region) |
ICheckSettings |
useDom(Boolean useDom) |
ICheckSettings |
variationGroupId(String variationGroupId) |
ICheckSettings |
visualGridOptions(VisualGridOption... options) |
ICheckSettings |
withName(String name)
A setter for the checkpoint name.
|
protected static final String BEFORE_CAPTURE_SCREENSHOT
protected final List<GetSimpleRegion> ignoreRegions
protected final List<GetSimpleRegion> layoutRegions
protected final List<GetSimpleRegion> strictRegions
protected final List<GetSimpleRegion> contentRegions
protected final List<GetFloatingRegion> floatingRegions
protected List<GetAccessibilityRegion> accessibilityRegions
protected String name
protected Boolean enablePatterns
protected Boolean sendDom
protected Boolean useDom
protected Boolean ignoreDisplacements
protected CheckSettings()
protected CheckSettings(Region region)
public CheckSettings(Integer timeout)
timeout - timeoutprotected void ignore_(Region region)
protected void ignore_(GetSimpleRegion regionProvider)
protected void layout_(Region region)
protected void layout_(GetSimpleRegion regionProvider)
protected void content_(Region region)
protected void content_(GetSimpleRegion regionProvider)
protected void strict_(Region region)
protected void strict_(GetSimpleRegion regionProvider)
protected void floating_(Region region, int maxUpOffset, int maxDownOffset, int maxLeftOffset, int maxRightOffset)
protected void floating(GetFloatingRegion regionProvider)
public CheckSettings clone()
clone in interface ICheckSettingsInternalclone in class Objectpublic Boolean isStitchContent()
isStitchContent in interface ICheckSettingsInternalpublic ICheckSettings ignore(Region region, 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(Region[] regions)
ignore in interface ICheckSettingsregions - An array of regions to ignore when validating the screenshot.public ICheckSettings layout(Region region, 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(Region[] regions)
layout in interface ICheckSettingsregions - An array of regions to match using the Layout method.public ICheckSettings strict(Region region, 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(Region[] regions)
strict in interface ICheckSettingsregions - An array of regions to match using the Strict method.public ICheckSettings content(Region region, 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(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, 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(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 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 Region getTargetRegion()
getTargetRegion in interface ICheckSettingsInternalpublic Integer getTimeout()
getTimeout in interface ICheckSettingsInternalpublic Boolean getStitchContent()
public MatchLevel getMatchLevel()
getMatchLevel in interface ICheckSettingsInternalpublic GetSimpleRegion[] getIgnoreRegions()
public GetSimpleRegion[] getStrictRegions()
public GetSimpleRegion[] getLayoutRegions()
public GetSimpleRegion[] getContentRegions()
public GetFloatingRegion[] 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(Region region)
protected void populateClone(CheckSettings clone)
public void setStitchContent(boolean stitchContent)
public Boolean isEnablePatterns()
public VisualGridSelector getVGTargetSelector()
getVGTargetSelector in interface ICheckSettingsInternalpublic 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_(GetAccessibilityRegion accessibilityRegionProvider)
protected void accessibility_(Region rect, AccessibilityRegionType regionType)
public ICheckSettings accessibility(Region region, AccessibilityRegionType regionType)
accessibility in interface ICheckSettingsprotected void accessibility(GetAccessibilityRegion accessibilityRegionProvider)
public GetAccessibilityRegion[] 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 List<VisualGridOption> getVisualGridOptions()
getVisualGridOptions in interface ICheckSettingsInternalpublic Boolean isDisableBrowserFetching()
isDisableBrowserFetching in interface ICheckSettingsInternalpublic ICheckSettings setDisableBrowserFetching(Boolean disableBrowserFetching)
setDisableBrowserFetching in interface ICheckSettingsInternalCopyright © 2022. All rights reserved.