java.lang.Object
com.redhat.devtools.intellij.commonuitest.utils.screenshot.ScreenshotUtils

public class ScreenshotUtils extends Object
Static utilities for taking screenshots
  • Method Details

    • takeScreenshot

      public static File takeScreenshot(com.intellij.remoterobot.RemoteRobot remoteRobot, 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 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