Class ShutterbugScreenShooter

java.lang.Object
net.serenitybdd.screenshots.shutterbug.ShutterbugScreenShooter
All Implemented Interfaces:
net.serenitybdd.core.photography.ScreenShooter

public class ShutterbugScreenShooter extends Object implements net.serenitybdd.core.photography.ScreenShooter
Takes screenshots using Shutterbug 0.9.5 You can configure Shutterbug with the following properties:
  • shutterbug.scrollstrategy (VIEWPORT_ONLY,WHOLE_PAGE or WHOLE_PAGE_SCROLL_AND_STITCH)
  • shutterbug.betweenScrollTimeout – Timeout to wait between each scrolling operation
  • shutterbug.useDevicePixelRatio – whether or not take into account device pixel ratio
  • Constructor Details

    • ShutterbugScreenShooter

      public ShutterbugScreenShooter(net.serenitybdd.core.photography.PhotoLens lens)
  • Method Details

    • takeScreenshot

      public byte[] takeScreenshot() throws IOException
      Specified by:
      takeScreenshot in interface net.serenitybdd.core.photography.ScreenShooter
      Throws:
      IOException