All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.applitools.eyes.selenium.NopRegionVisibilityStrategy Maven / Gradle / Ivy

package com.applitools.eyes.selenium;

import com.applitools.eyes.Location;
import com.applitools.eyes.Logger;
import com.applitools.eyes.PositionProvider;

/**
 * An implementation of {@link RegionVisibilityStrategy} which does nothing.
 */
public class NopRegionVisibilityStrategy implements RegionVisibilityStrategy {

    private final Logger logger;

    NopRegionVisibilityStrategy(Logger logger) {
        this.logger = logger;
    }

    public void moveToRegion(PositionProvider positionProvider,
                             Location location) {
        logger.verbose("Ignored (no op).");
    }

    public void returnToOriginalPosition(PositionProvider positionProvider) {
        logger.verbose("Ignored (no op).");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy