UIAutomation ‘typing’ on the keyboard
I was looking for a way to use the iOS keyboard directly, Stack oveflow to the rescue again:
// Boiler plate code.
var target = UIATarget.localTarget();
var application = target.frontMostApp();
var mainWindow = application.mainWindow();
var keyBoard=application.keyboard();
var keys = keyBoard.keys();
keys.firstWithName("g").tap();
target.delay(0.5);
keys.firstWithName("o").tap();
target.delay(0.5);
keys.firstWithName("r").tap();
target.delay(0.5);
keys.firstWithName("d").tap();
target.delay(0.5);
keys.firstWithName("o").tap();
target.delay(0.5);
Reference: stackoverflow wiki