Interface SupportsConnectHardwareKeyboardOption<T extends BaseOptions<T>>

    • Field Detail

      • CONNECT_HARDWARE_KEYBOARD_OPTION

        static final java.lang.String CONNECT_HARDWARE_KEYBOARD_OPTION
        See Also:
        Constant Field Values
    • Method Detail

      • connectHardwareKeyboard

        default T connectHardwareKeyboard()
        Enforce connecting of hardware keyboard to Simulator.
        Returns:
        self instance for chaining.
      • setConnectHardwareKeyboard

        default T setConnectHardwareKeyboard​(boolean value)
        Set this option to true in order to enable hardware keyboard in Simulator. The preference works only when Appium launches a simulator instance with this value. It is set to false by default, because this helps to workaround some XCTest bugs. connectHardwareKeyboard: true makes forceSimulatorSoftwareKeyboardPresence: false if no explicit value is set for forceSimulatorSoftwareKeyboardPresence capability since Appium 1.22.0.
        Parameters:
        value - Whether to connect hardware keyboard to Simulator.
        Returns:
        self instance for chaining.
      • doesConnectHardwareKeyboard

        default java.util.Optional<java.lang.Boolean> doesConnectHardwareKeyboard()
        Get whether to connect hardware keyboard to Simulator.
        Returns:
        True or false.