Hi , Thanks for the reply. Actually the scenario of my script is to scroll screen, touch on specific menu item, long touch on an item.
The script should haveonly touch operations as I am working with only touch enabled device(NO keypad, Full touch device). I came across one utility called androidlib.py which provides methods to perform many actions on device. In that there is a scroll() method, which is not performing successfully. path: https://github.com/eing/moet/blob/master/common/androidlib.py After first scroll(horizontally in home screen) , the focus went to contacts shortcut at the bottom of screen and it can't proceed with the second scroll. (Note: is it possible to embed touchevent constants like ACTION_SCROLL in that method?) I also tried with MonkeyDevice.drag() api, which requires hardcoded values of x, y screen coordinates which may not perform operation when the script runs on emulator or other device. Can you please help me with solution or any alternative for the same. Thanks in advance. frank ------------------------------------ On Jul 12, 3:31 am, Bill Napier <[email protected]> wrote: > 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- Hide quoted text - > > - Show quoted text - -- 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

