I'm automating the entry of SQLite data in an Android app I'm writing. The app is written in Java. The functional ui test is written in python using MonkeyRunner and is being run against the Android 4.2 emulator running on my Win7 laptop.
#Touch the new alliance button
device.touch(358, 78, 'DOWN_AND_UP')
MonkeyRunner.sleep(3)
# Type name of new alliance
device.type("Legion of Anarchy")
MonkeyRunner.sleep(3)
#Touch the allc leader edittext
device.touch(88, 348, 'DOWN_AND_UP')
# Type name of alliance leader
device.type("DeathAngel")
In the form the first field already has the focus, so i just type in the entry. The next touch command taps on the following field, but that doesn't always work. From my laptop keyboard I'm able to TAB to the next field...I just need to know how to do that in python/MonkeyRunner.
Thanks!