Description
Types text in the active application and object on the connected mobile device.
Declaration
TestObj.Keys(Keys)
TestObj | A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section | |||
Keys | [in] | Required | String | |
Result | None |
Applies To
All mobile devices and tested mobile objects
View Mode
To view this method in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.
Parameters
The method has the following parameter:
Keys
The text to type. It can include special keys from the following table:
|
|
All constants (F1 , PageDown , X , P , etc.) are case-sensitive. |
Result Value
None.
Remarks
-
On Android devices, the
Device.Keys
method only supports Latin characters.The
Element.Keys
method also supports only Latin characters by default. To enable theElement.Keys
method to support other character sets, use theunicodeKeyboard
andresetKeyboard
capabilities when opening a testing session on your Android device. -
On iOS devices, the
Keys
method may fail to simulate pressing special keys, like SHIFT, CTRL, ALT, or Backspace.