Interface SupportsConnectHardwareKeyboardOption<T extends BaseOptions<T>>

All Superinterfaces:
CanSetCapability<T>, org.openqa.selenium.Capabilities, Serializable
All Known Implementing Classes:
XCUITestOptions

public interface SupportsConnectHardwareKeyboardOption<T extends BaseOptions<T>> extends org.openqa.selenium.Capabilities, CanSetCapability<T>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default T
    Enforce connecting of hardware keyboard to Simulator.
    default Optional<Boolean>
    Get whether to connect hardware keyboard to Simulator.
    default T
    Set this option to true in order to enable hardware keyboard in Simulator.

    Methods inherited from interface io.appium.java_client.remote.options.CanSetCapability

    amend, setCapability

    Methods inherited from interface org.openqa.selenium.Capabilities

    asMap, get, getBrowserName, getBrowserVersion, getCapability, getCapabilityNames, getPlatformName, is, merge, required
  • Field Details

  • Method Details

    • 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 Optional<Boolean> doesConnectHardwareKeyboard()
      Get whether to connect hardware keyboard to Simulator.
      Returns:
      True or false.