trying to learn how to write monkeyrunner scripts in python:

 
device.startActivity( component='com.android.calculator2/.Calculator' )
    time.sleep(1)
    device.type( '2*3=' )

starts the calculator, accepts the input and displays the proper
result.  However

 
device.startActivity( component='com.android.browser/.BrowserActivity',
uri='http://www.amazon.com' )
    time.sleep(5)
    device.type('www.yahoo.com')
    device.press('KEYCODE_ENTER', 'DOWN_AND_UP')

starts the browser with www.amazon.com just fine, but then the first
two 'w' from www.yahoo.com get dropped.  I've tried varying the sleep
time and also sending each individual character one device.press() at
a time, but trying to send keystrokes to the browser always results in
leading characters getting dropped.

What am I missing?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to