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 -
Method Summary
Modifier and TypeMethodDescriptiondefault TEnforce connecting of hardware keyboard to Simulator.Get whether to connect hardware keyboard to Simulator.default TsetConnectHardwareKeyboard(boolean value) 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, setCapabilityMethods inherited from interface org.openqa.selenium.Capabilities
asMap, get, getBrowserName, getBrowserVersion, getCapability, getCapabilityNames, getPlatformName, is, merge, required
-
Field Details
-
CONNECT_HARDWARE_KEYBOARD_OPTION
- See Also:
-
-
Method Details
-
connectHardwareKeyboard
Enforce connecting of hardware keyboard to Simulator.- Returns:
- self instance for chaining.
-
setConnectHardwareKeyboard
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
Get whether to connect hardware keyboard to Simulator.- Returns:
- True or false.
-