anandmeher / robotium

Automatically exported from code.google.com/p/robotium
0 stars 0 forks source link

" ClickOnScreen " doesn't work #471

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1.I select a picture by the method “solo.clickOnScreen(387, 381);”

--Robotium -solo 4.1.jar

---
junit.framework.AssertionFailedError: Click can not be completed!
at com.jayway.android.robotium.solo.Clicker.clickOnScreen(Clicker.java:91)
at com.jayway.android.robotium.solo.Solo.clickOnScreen(Solo.java:649)
at com.ffcs.SmsHelper.test.TestAutoReply.testA11Sms(TestAutoReply.java:40)
at java.lang.reflect.Method.invokeNative(Native Method)
at 
android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214)
at 
android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199)
at 
android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTes
tCase2.java:192)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:192)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:177)
at 
android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:55
5)
at 
android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1619)

Original issue reported on code.google.com by lqca...@163.com on 7 Jun 2013 at 7:23

GoogleCodeExporter commented 9 years ago
Due to the picture selector belonging to another process then the application 
under test Robotium is not allowed to interact with it. This is a restriction 
of the Android platform.  Please see Q&A wiki page for more information. 

Original comment by renasr...@gmail.com on 7 Jun 2013 at 8:20