public interface ScreenShooter
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.| Modifier and Type | Method and Description |
|---|---|
byte[] |
takeScreenshot() |
byte[] takeScreenshot()
throws IOException
IOExceptionCopyright © 2023. All rights reserved.