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 -
Method Summary
Modifier and TypeMethodDescriptionGet the screenshot quality value.default TsetScreenshotQuality(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, setCapabilityMethods inherited from interface org.openqa.selenium.Capabilities
asMap, get, getBrowserName, getBrowserVersion, getCapability, getCapabilityNames, getPlatformName, is, merge, required
-
Field Details
-
SCREENSHOT_QUALITY_OPTION
- See Also:
-
-
Method Details
-
setScreenshotQuality
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
Get the screenshot quality value.- Returns:
- The screenshot quality value.
-