Interface SupportsScreenshotQualityOption<T extends BaseOptions<T>>
-
- All Superinterfaces:
CanSetCapability<T>
,org.openqa.selenium.Capabilities
,java.io.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 java.lang.String
SCREENSHOT_QUALITY_OPTION
-
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 io.appium.java_client.remote.options.CanSetCapability
amend, setCapability
-
-
-
-
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.
-
-