Class WebDriverScreenShooter

java.lang.Object
net.serenitybdd.core.photography.WebDriverScreenShooter
All Implemented Interfaces:
ScreenShooter

public class WebDriverScreenShooter
extends java.lang.Object
implements ScreenShooter
The default screenshot mechanism, using the standard WebDriver screenshot functionality
  • Constructor Summary

    Constructors
    Constructor Description
    WebDriverScreenShooter​(PhotoLens lens)  
  • Method Summary

    Modifier and Type Method Description
    byte[] takeScreenshot()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WebDriverScreenShooter

      public WebDriverScreenShooter​(PhotoLens lens)
  • Method Details

    • takeScreenshot

      public byte[] takeScreenshot() throws java.io.IOException
      Specified by:
      takeScreenshot in interface ScreenShooter
      Throws:
      java.io.IOException