Class ScreenshotService


  • @Component("tapirScreenshotService")
    public class ScreenshotService
    extends java.lang.Object
    This service can be used to make screenshots from the currently displayed browser window.
    Since:
    2.0.0
    Author:
    Oliver Libutzki <[email protected]>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void takeScreenshot​(java.lang.String name)
      Takes a screenshot with the given name, if the current web driver supports this.
      • Methods inherited from class java.lang.Object

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

      • ScreenshotService

        public ScreenshotService()
    • Method Detail

      • takeScreenshot

        public void takeScreenshot​(java.lang.String name)
        Takes a screenshot with the given name, if the current web driver supports this. Otherwise this method does nothing. The screenshot is sent to all registered observers.
        Parameters:
        name - Name of the Screenshot
        Since:
        2.0.0