So you would like to use robots to test apps on your smartphone? The Tapster robot is worth a look. It simulates a human finger on a capacitive touchscreen device. It has open source hardware and 3D printable parts. It is programmed with Node.js, Johnny Five, and Arduino.
The robot has a tappable area of 140mm x 80mm. More info is available here.