Interface SupportsScreenshotQualityOption<T extends BaseOptions<T>>

All Superinterfaces:
CanSetCapability<T>, org.openqa.selenium.Capabilities, Serializable
All Known Implementing Classes:
XCUITestOptions

public interface SupportsScreenshotQualityOption<T extends BaseOptions<T>> extends org.openqa.selenium.Capabilities, CanSetCapability<T>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default Optional<Integer>
    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 io.appium.java_client.remote.options.CanSetCapability

    amend, setCapability

    Methods inherited from interface org.openqa.selenium.Capabilities

    asMap, get, getBrowserName, getBrowserVersion, getCapability, getCapabilityNames, getPlatformName, is, merge, required
  • Field Details

  • Method Details

    • 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 Optional<Integer> getScreenshotQuality()
      Get the screenshot quality value.
      Returns:
      The screenshot quality value.