Class ScreenshotUtils


  • public class ScreenshotUtils
    extends java.lang.Object
    Static utilities for taking screenshots
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.io.File takeScreenshot​(com.intellij.remoterobot.RemoteRobot remoteRobot)
      Take screenshot of the entire screen and save it on disk
      static java.io.File takeScreenshot​(com.intellij.remoterobot.RemoteRobot remoteRobot, java.lang.String comment)
      Take screenshot of the entire screen and save it on disk
      • Methods inherited from class java.lang.Object

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

      • takeScreenshot

        public static java.io.File takeScreenshot​(com.intellij.remoterobot.RemoteRobot remoteRobot,
                                                  java.lang.String comment)
        Take screenshot of the entire screen and save it on disk
        Parameters:
        remoteRobot - reference to the RemoteRobot instance
        comment - message to add at the end of the screenshot's filename
        Returns:
        the screenshot as a File object
      • takeScreenshot

        public static java.io.File takeScreenshot​(com.intellij.remoterobot.RemoteRobot remoteRobot)
        Take screenshot of the entire screen and save it on disk
        Parameters:
        remoteRobot - reference to the RemoteRobot instance
        Returns:
        the screenshot as a File object