Interface SupportsScreenshotQualityOption<T extends BaseOptions<T>>

    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default java.util.Optional<java.lang.Integer> getScreenshotQuality()
      Get the screenshot quality value.
      default T setScreenshotQuality​(int quality)
      Changes the quality of phone display screenshots following xctest/xctimagequality Default value is 1.
      • Methods inherited from interface org.openqa.selenium.Capabilities

        asMap, getBrowserName, getBrowserVersion, getCapability, getCapabilityNames, getPlatform, getPlatformName, getVersion, is, merge
    • Field Detail

      • SCREENSHOT_QUALITY_OPTION

        static final java.lang.String SCREENSHOT_QUALITY_OPTION
        See Also:
        Constant Field Values
    • Method Detail

      • setScreenshotQuality

        default T setScreenshotQuality​(int quality)
        Changes the quality of phone display screenshots following xctest/xctimagequality Default value is 1. 0 is the highest and 2 is the lowest quality. You can also change it via settings command. 0 might cause OutOfMemory crash on high-resolution devices like iPad Pro.
        Parameters:
        quality - Quality value in range 0..2.
        Returns:
        self instance for chaining.
      • getScreenshotQuality

        default java.util.Optional<java.lang.Integer> getScreenshotQuality()
        Get the screenshot quality value.
        Returns:
        The screenshot quality value.