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

net.serenitybdd.core.photography.ScreenShooter Maven / Gradle / Ivy

There is a newer version: 4.2.8
Show newest version
package net.serenitybdd.core.photography;

import java.io.IOException;

/**
 * Implement this interface if you want to implement your own WebDriver screenshot logic.
 * Any class that implements this method must have a constructor with a PhotoLens parameter, e.g.
 * 
 *     
 *         class WebDriverScreenShooter {
 *             WebDriver driver;
 *             public WebDriverScreenShooter(PhotoLens lens) {
 *                 this.driver = ((WebDriverPhotoLens) lens).getDriver();
 *             }
 *         }
 *     
*
* * You can use your custom ScreenShooter class by setting the `serenity.screenshooter` property to the fully qualified * classname of your class. */ public interface ScreenShooter { byte[] takeScreenshot() throws IOException; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy