What steps will reproduce the problem?
I'm trying to use solo.clickOnActionBarHomeButton();
Nothing special case. Just trying to use it.
What is the expected output? What do you see instead?
Opens menu / crash of my test
What version of the product are you using? On what operating system?
robotium 4.3. Android 4.1.2
And in log there are following strings:
android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original
thread that created a view hierarchy can touch its views.
at android.view.ViewRootImpl.checkThread(ViewRootImpl.java:4867)
at android.view.ViewRootImpl.invalidateChildInParent(ViewRootImpl.java:979)
at android.view.ViewGroup.invalidateChild(ViewGroup.java:4306)
at android.view.View.invalidate(View.java:10519)
at android.view.View.invalidate(View.java:10474)
at android.support.v4.widget.DrawerLayout.openDrawer(DrawerLayout.java:985)
at android.support.v4.app.Watson.onMenuItemSelected(Watson.java:129)
at
com.actionbarsherlock.ActionBarSherlock.callbackOptionsItemSelected(ActionBarShe
rlock.java:635)
at
com.actionbarsherlock.internal.ActionBarSherlockNative.dispatchOptionsItemSelect
ed(ActionBarSherlockNative.java:78)
at
com.actionbarsherlock.app.SherlockFragmentActivity.onMenuItemSelected(SherlockFr
agmentActivity.java:209)
at
com.jayway.android.robotium.solo.Clicker.clickOnActionBarHomeButton(Clicker.java
:323)
at
com.jayway.android.robotium.solo.Solo.clickOnActionBarHomeButton(Solo.java:1243)
at
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:1608)
Original issue reported on code.google.com by dmitriy....@gmail.com on 12 Nov 2013 at 1:57
Original issue reported on code.google.com by
dmitriy....@gmail.com
on 12 Nov 2013 at 1:57