[android-developers] how to perfrom long press on screen, and how to get text on screen in monkeyrunner

2011-07-11 Thread frank
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

Re: [android-developers] how to perfrom long press on screen, and how to get text on screen in monkeyrunner

2011-07-11 Thread Bill Napier
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 franklin.f2...@gmail.com

Re: [android-developers] how to perfrom long press on screen, and how to get text on screen in monkeyrunner

2011-07-11 Thread Bill Napier
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 nap...@android.com wrote: device.press('KEY_MENU', MonkeyDevice.DOWN_AND_UP) is what I think you want. I think the docs are