Oh, and there currently is no way to get text from the screen. It's something we are working on, but it's not yet ready.
On Mon, Jul 11, 2011 at 3:31 PM, Bill Napier <[email protected]> wrote: > device.press('KEY_MENU', MonkeyDevice.DOWN_AND_UP) is what I think you > want. I think the docs are currently incorrect. > > DOWN_AND_UP means to send both the down event and the up event, which > should simulate a press of the button. > > > On Mon, Jul 11, 2011 at 12:58 AM, frank <[email protected]> wrote: > >> Hi All >> >> I am writing scripts on monkeyrunner to test screen verification. >> I want to get screen text and verifiy the same to perform touch and >> press action >> on the screen items. >> >> The below command takes only key presses, >> device.press('KEY_MENU', 'DOWN') >> >> Can you anyone help me with some option to perform touch and press on >> screen. >> Also to get and verify screen contents like text. >> >> regards, >> Frank >> >> >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en >> > > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

