com.applitools.eyes.EyesWebDriverScreenshotFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eyes-selenium-java-ab2_39 Show documentation
Show all versions of eyes-selenium-java-ab2_39 Show documentation
Applitools Eyes SDK for Selenium Java WebDriver
The newest version!
package com.applitools.eyes;
import java.awt.image.BufferedImage;
/**
* Encapsulates the instantiation of an {@link EyesWebDriverScreenshot} .
*/
class EyesWebDriverScreenshotFactory implements EyesScreenshotFactory {
private final Logger logger;
private final EyesWebDriver driver;
public EyesWebDriverScreenshotFactory(Logger logger, EyesWebDriver driver) {
this.logger = logger;
this.driver = driver;
}
public EyesScreenshot makeScreenshot(BufferedImage image) {
return new EyesWebDriverScreenshot(logger, driver, image);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy