Does XCUITest have a feature to "type" using IOS's keyboard?

As far as I understand the typeText Function simply copies the value from Test script to the textbox. Is there a function that actually types ( Keyboard input ) to a textbox?

I have been through multiple Apple Dev forums and Stack-overflow but was not able to find an answer, could you please guide me on the same?

Replies

The APIs available for keystrokes on iOS include:

typeText, used to type a full string into a text box: https://developer.apple.com/documentation/xctest/xcuielement/1500968-typetext

typeKey, used to type a single character into a text box: https://developer.apple.com/documentation/xctest/xcuielement/1500604-typekey

and typeKey with modifiers, which types a single character with modifiers into a text box: https://developer.apple.com/documentation/xctest/xcuielement/2920413-typekey