public interface ICheckSettings
| Modifier and Type | Method and Description |
|---|---|
ICheckSettings |
content()
Shortcut to set the match level to
MatchLevel.CONTENT. |
ICheckSettings |
exact()
Shortcut to set the match level to
MatchLevel.EXACT. |
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 |
ignore(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 |
layout()
Shortcut to set the match level to
MatchLevel.LAYOUT. |
ICheckSettings |
matchLevel(MatchLevel matchLevel)
Set the match level by which to compare the screenshot.
|
ICheckSettings |
strict()
Shortcut to set the match level to
MatchLevel.STRICT. |
ICheckSettings |
timeout(int timeoutMilliseconds)
Defines the timeout to use when acquiring and comparing screenshots.
|
ICheckSettings ignore(Region... regions)
regions - One or more regions to ignore when validating the screenshot.ICheckSettings fully()
ICheckSettings floating(int maxOffset, Region... regions)
maxOffset - How much each of the content rectangles can move in any direction.regions - One or more content rectangles.ICheckSettings floating(Region region, int maxUpOffset, int maxDownOffset, int maxLeftOffset, int maxRightOffset)
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.ICheckSettings timeout(int timeoutMilliseconds)
timeoutMilliseconds - The timeout to use in milliseconds.ICheckSettings layout()
MatchLevel.LAYOUT.ICheckSettings exact()
MatchLevel.EXACT.ICheckSettings strict()
MatchLevel.STRICT.ICheckSettings content()
MatchLevel.CONTENT.ICheckSettings matchLevel(MatchLevel matchLevel)
matchLevel - The match level to use.ICheckSettings ignoreCaret(boolean ignoreCaret)
ignoreCaret - Whether or not to detect and ignore a blinking caret in the screenshot.ICheckSettings ignoreCaret()
Copyright © 2017. All rights reserved.