austgl / robotium

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

solo.getTopParent(view) fails for ICS #215

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run solo.getTopParent(view) fails 
2.
3.

What is the expected output? What do you see instead?
Should return top parent view.
It crashes due trying to cast viewRootImpl to view.

What version of the product are you using? On what operating system?
3.1
ICS

Please provide any additional information below.
When checking for parent object, "android.view.ViewRoot" is incorrect for ICS 
at least. It is actually "android.view.ViewRootImpl".
Maybe we should check for both.
Line:
https://github.com/jayway/robotium/blob/master/robotium-solo/src/main/java/com/j
ayway/android/robotium/solo/ViewFetcher.java#L45

Original issue reported on code.google.com by ivanja...@gmail.com on 22 Jan 2012 at 4:07

GoogleCodeExporter commented 9 years ago
Thanks for reporting this. It will be fixed in the next release. 

Original comment by renasr...@gmail.com on 23 Jan 2012 at 7:19

GoogleCodeExporter commented 9 years ago
This has been fixed in Robotium 3.2. 

Original comment by renasr...@gmail.com on 10 Apr 2012 at 6:44