Keys Action (iOS Objects)

Applies to TestComplete 15.20, last modified on January 19, 2022
This method is available in legacy mobile tests that work with devices connected to the local computer. To learn how to simulate user actions in newer cloud-compatible mobile tests, see the Simulating user actions in tests section.

Description

The Keys action selects (focuses) an object and types text into it.

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 iOS objects

View Mode

This method is available in the Object Browser panel and in other panels and dialogs in both Basic and Advanced view modes.

Parameters

The method has the following parameter:

Keys

The text to enter.

Result Value

None.

Remarks

For IOS 13:The Keys action might not work if the iOS TextField control is set to disable text copying (secureTextEntry = true) and if an input string contains symbols from a language that differs from the keyboard language. In such cases, use the SetText action instead of Keys.

See Also

Testing iOS Applications (Legacy)

Highlight search results