To use actions such as replace text, you do not need to worry about using the keyboard - the test execution component does this for you.
However, if you would like to press specific buttons on the keyboard such as »DONE«, »DELETE« and so on, then you should use the action in the unbound_modules_ios called Tap View with Accessibility Label.
This allows you to press any item on the screen (on the keyboard or elsewhere) based on its accessibility label:
The accessibility label is an internal attribute for a component that is designed to be used by screen readers etc.
You can find out the accessibility label for an item by using the Accessibility Inspector on e.g. an iOS simulator. You can activate the Inspector via the General Settings.
Once you know the label, you can enter it as a parameter (exactly as it is written).
Bear in mind that accessibility labels are language-dependent (i.e. you will need to translate the test data), and also sometimes orientation-dependent. It is also not necessarily the case that the accessibility label is the same as the text on the item that is visible in the AUT .
Many iOS devices have a setting activated to start each text with a capital letter. We recommend deactivating this setting for your tests, as attempts to enter lowercase text at the beginning of a textfield will otherwise fail.
Copyright BREDEX GmbH 2014. Made available under the Eclipse Public License v1.0.