imzzy / robotium

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

ClickOnactionBarHomeButton throws exception #620

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use android studio 0.8.1
2. Create a activity with the template of navigation drawer
3. Call clickOnActionBarHomeButton() in the 
ActivityInstrumentationTestCase2<TheNewCreatedClass>

What is the expected output? What do you see instead?

Expected:
ActionBar Home Button should be clicked

Actual:
ActionBar Home Button is not clicked.

What version of the product are you using? On what operating system?
5.2.1 on Windows 7, android studio 0.8.1

Please provide any additional information below.
Remark:
copy the function from github to the test code, the ignored Exception is thrown.

android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original 
thread that created a view hierarchy can touch its views.

Original issue reported on code.google.com by gilbert....@znap.com on 7 Jul 2014 at 8:33

GoogleCodeExporter commented 9 years ago
Thanks for reporting this. 

Original comment by renasr...@gmail.com on 20 Jul 2014 at 5:41

GoogleCodeExporter commented 9 years ago
This has been fixed in Robotium 5.3.0

Original comment by renasr...@gmail.com on 17 Feb 2015 at 2:18