Interface SupportsSimulatorWindowCenterOption<T extends BaseOptions<T>>
-
- All Superinterfaces:
CanSetCapability<T>
,org.openqa.selenium.Capabilities
,java.io.Serializable
- All Known Implementing Classes:
XCUITestOptions
public interface SupportsSimulatorWindowCenterOption<T extends BaseOptions<T>> extends org.openqa.selenium.Capabilities, CanSetCapability<T>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
SIMULATOR_WINDOW_CENTER_OPTION
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.util.Optional<java.lang.String>
getSimulatorWindowCenter()
Get Simulator window center coordinates.default T
setSimulatorWindowCenter(java.lang.String coordinates)
Allows to explicitly set the coordinates of Simulator window center for Xcode9+ SDK.-
Methods inherited from interface io.appium.java_client.remote.options.CanSetCapability
amend, setCapability
-
-
-
-
Field Detail
-
SIMULATOR_WINDOW_CENTER_OPTION
static final java.lang.String SIMULATOR_WINDOW_CENTER_OPTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
setSimulatorWindowCenter
default T setSimulatorWindowCenter(java.lang.String coordinates)
Allows to explicitly set the coordinates of Simulator window center for Xcode9+ SDK. This capability only has an effect if Simulator window has not been opened yet for the current session before it started. e.g. "{-100.0,100.0}" or "{500,500}", spaces are not allowed- Parameters:
coordinates
- Window center coordinates.- Returns:
- self instance for chaining.
-
getSimulatorWindowCenter
default java.util.Optional<java.lang.String> getSimulatorWindowCenter()
Get Simulator window center coordinates.- Returns:
- Coordinates string.
-
-