Package com.applitools.eyes.selenium
Class ContextBasedScaleProviderFactory
- java.lang.Object
-
- com.applitools.eyes.ScaleProviderFactory
-
- com.applitools.eyes.selenium.ContextBasedScaleProviderFactory
-
public class ContextBasedScaleProviderFactory extends com.applitools.eyes.ScaleProviderFactory
Factory implementation for creatingContextBasedScaleProvider
instances.
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.applitools.eyes.ScaleProvider
getScaleProviderImpl(int imageToScaleWidth)
-
-
-
Constructor Detail
-
ContextBasedScaleProviderFactory
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)
- Parameters:
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.
-
-