public class ContextBasedScaleProviderFactory
extends com.applitools.eyes.ScaleProviderFactory
ContextBasedScaleProvider instances.| Constructor and Description |
|---|
ContextBasedScaleProviderFactory(com.applitools.eyes.Logger logger,
com.applitools.eyes.RectangleSize topLevelContextEntireSize,
com.applitools.eyes.RectangleSize viewportSize,
double devicePixelRatio,
boolean isMobileDevice,
com.applitools.utils.PropertyHandler<com.applitools.eyes.ScaleProvider> scaleProviderHandler) |
| Modifier and Type | Method and Description |
|---|---|
protected com.applitools.eyes.ScaleProvider |
getScaleProviderImpl(int imageToScaleWidth) |
public ContextBasedScaleProviderFactory(com.applitools.eyes.Logger logger,
com.applitools.eyes.RectangleSize topLevelContextEntireSize,
com.applitools.eyes.RectangleSize viewportSize,
double devicePixelRatio,
boolean isMobileDevice,
com.applitools.utils.PropertyHandler<com.applitools.eyes.ScaleProvider> scaleProviderHandler)
topLevelContextEntireSize - The total size of the top level
context. E.g., for selenium this
would be the document size of the top
level frame.viewportSize - The viewport size.devicePixelRatio - The device pixel ratio of the
platform on which the application is
running.isMobileDevice - is Mobile devicelogger - the logger.scaleProviderHandler - the scale provider handler.Copyright © 2021. All rights reserved.