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 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.