Interface SupportsScaleFactorOption<T extends BaseOptions<T>>
-
- All Superinterfaces:
CanSetCapability<T>
,org.openqa.selenium.Capabilities
,java.io.Serializable
- All Known Implementing Classes:
XCUITestOptions
public interface SupportsScaleFactorOption<T extends BaseOptions<T>> extends org.openqa.selenium.Capabilities, CanSetCapability<T>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
SCALE_FACTOR_OPTION
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.util.Optional<java.lang.String>
getScaleFactor()
Get Simulator scale factor.default T
setScaleFactor(java.lang.String scaleFactor)
Simulator scale factor.-
Methods inherited from interface io.appium.java_client.remote.options.CanSetCapability
amend, setCapability
-
-
-
-
Field Detail
-
SCALE_FACTOR_OPTION
static final java.lang.String SCALE_FACTOR_OPTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
setScaleFactor
default T setScaleFactor(java.lang.String scaleFactor)
Simulator scale factor. This is useful to have if the default resolution of simulated device is greater than the actual display resolution. So you can scale the simulator to see the whole device screen without scrolling. Acceptable values for simulators running Xcode SDK 8 and older are: '1.0', '0.75', '0.5', '0.33' and '0.25', where '1.0' means 100% scale. For simulators running Xcode SDK 9 and above the value could be any valid positive float number.- Parameters:
scaleFactor
- Scale factor value.- Returns:
- self instance for chaining.
-
getScaleFactor
default java.util.Optional<java.lang.String> getScaleFactor()
Get Simulator scale factor.- Returns:
- Scale factor value.
-
-