Interface SupportsForceSimulatorSoftwareKeyboardPresenceOption<T extends BaseOptions<T>>
-
- All Superinterfaces:
CanSetCapability<T>
,org.openqa.selenium.Capabilities
,java.io.Serializable
- All Known Implementing Classes:
XCUITestOptions
public interface SupportsForceSimulatorSoftwareKeyboardPresenceOption<T extends BaseOptions<T>> extends org.openqa.selenium.Capabilities, CanSetCapability<T>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
FORCE_SIMULATOR_SOFTWARE_KEYBOARD_PRESENCE_OPTION
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.util.Optional<java.lang.Boolean>
doesForceSimulatorSoftwareKeyboardPresence()
Get to enforce software keyboard presence.default T
forceSimulatorSoftwareKeyboardPresence()
Enforce software keyboard presence.default T
setForceSimulatorSoftwareKeyboardPresence(boolean value)
Set this option to true in order to turn software keyboard on and turn hardware keyboard off in Simulator since Appium 1.22.0.-
Methods inherited from interface io.appium.java_client.remote.options.CanSetCapability
amend, setCapability
-
-
-
-
Field Detail
-
FORCE_SIMULATOR_SOFTWARE_KEYBOARD_PRESENCE_OPTION
static final java.lang.String FORCE_SIMULATOR_SOFTWARE_KEYBOARD_PRESENCE_OPTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
forceSimulatorSoftwareKeyboardPresence
default T forceSimulatorSoftwareKeyboardPresence()
Enforce software keyboard presence.- Returns:
- self instance for chaining.
-
setForceSimulatorSoftwareKeyboardPresence
default T setForceSimulatorSoftwareKeyboardPresence(boolean value)
Set this option to true in order to turn software keyboard on and turn hardware keyboard off in Simulator since Appium 1.22.0. This option helps to avoid Keyboard is not present error. It is set to true by default. Appium respects preset simulator software/hardware keyboard preference when this value is false, so connectHardwareKeyboard: false and forceSimulatorSoftwareKeyboardPresence: false means for Appium to keep the current Simulator keyboard preferences. This option has priority over connectHardwareKeyboard.- Parameters:
value
- Whether to enforce software keyboard presence.- Returns:
- self instance for chaining.
-
doesForceSimulatorSoftwareKeyboardPresence
default java.util.Optional<java.lang.Boolean> doesForceSimulatorSoftwareKeyboardPresence()
Get to enforce software keyboard presence.- Returns:
- True or false.
-
-