@ExperimentalApi @Immutable public final class DefaultComparer extends Object implements Comparer
Comparer. This implementation delegates the visual comparison requests to
the old visual comparison library, transforming the
request, the settings and the results in the process.
BrowserEngine is used as the underlying SPI for the browser automation framework and
ComparisonSettings as the vehicle for configuring the visual comparison, both at the
instance and at the
single comparison level.
NOTE: this implementation is likely to change in the future to migrate away from the old library. Depending on
implementation details of this class is highly discouraged.| Constructor and Description |
|---|
DefaultComparer(BrowserEngine engine,
ComparisonSettings settings) |
| Modifier and Type | Method and Description |
|---|---|
void |
compare(String id)
Take a snapshot of the current page and compare it with a baseline using given
id. |
void |
compare(String id,
ComparisonSettings extraSettings)
Take a snapshot of the current page and compare it with a baseline using given
id. |
public DefaultComparer(@Nonnull BrowserEngine engine, ComparisonSettings settings)
public void compare(@Nonnull String id)
Comparerid. Use default settings
specific to this instance of Comparer.public void compare(@Nonnull String id, @Nonnull ComparisonSettings extraSettings)
Comparerid. Use settings
in preference, or in addition to any settings specified for this Comparer itself.Copyright © 2015 Atlassian. All rights reserved.