|MonkeyRunner unable to get Views on Nexus||Mallik141||8/1/12 7:13 AM|
I am trying to write a MonkeyRunner script to touch on the screen based on the location of Views/widgets. No Matter what i try to do with views it throws me an exception as below
Jython 2.5.0 (Release_2_5_0:6476, Jun 16 2009, 13:33:26)
[Java HotSpot(TM) Client VM (Oracle Corporation)] on java1.7.0_05
>>> from com.android.monkeyrunner import MonkeyDevice,MonkeyRunner
>>> device = MonkeyRunner.waitForConnection()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
tion: No accessibility event has occured yet
Also is there a work around where i can directly access a wdiget instead of going through views. I would like to be able to check if widget for ex. Phone icon exists on homescreen and just touch it.
|Re: MonkeyRunner unable to get Views on Nexus||Mukesh02||8/2/12 3:05 AM|
Hi Mallik ,
i am also getting same Error
Please let me know if anyother solution of these
|Re: MonkeyRunner unable to get Views on Nexus||Mallik141||9/18/12 4:37 PM|
I downloaded and compiled latest sdk from source and i did not see issue after that. Google also just release a preview for R21 SDK. that might help you with resolving this issues.
|Re: MonkeyRunner unable to get Views on Nexus||Paul||9/19/12 11:26 AM|
These sorts of coding questions are best sent to Google's Developer Relations team. You can learn how to reach them here.
There aren't very many coders hanging out in this forum. :-)