mosil / robotium

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

ArrayList cannot be cast to android.view.View[] #568

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Buy a Nexus 5
2. Start using a really simple instructions like solo.waitForText("Demo data 
launched");

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

Test should start as usual.

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

Robotium 4.3.1, Android 4.4.2

Please provide any additional information below.

java.lang.RuntimeException: java.lang.ClassCastException: java.util.ArrayList 
cannot be cast to android.view.View[]
at com.jayway.android.robotium.solo.Searcher.searchFor(Searcher.java:128)
at com.jayway.android.robotium.solo.Waiter.waitForText(Waiter.java:464)
at com.jayway.android.robotium.solo.Waiter.waitForText(Waiter.java:403)
at com.jayway.android.robotium.solo.Waiter.waitForText(Waiter.java:375)
at com.jayway.android.robotium.solo.Solo.waitForText(Solo.java:200)

Original issue reported on code.google.com by simonro...@gmail.com on 2 Jan 2014 at 12:48

GoogleCodeExporter commented 9 years ago
This issue has been fixed with Robotium 4.3.1. I just dubbel checked on 4.2.2. 
Download 4.3.1 from here:

https://code.google.com/p/robotium/downloads/list

And make sure you clean your test project by going to Project --> Clean

Original comment by renasr...@gmail.com on 2 Jan 2014 at 4:49

GoogleCodeExporter commented 9 years ago
I am currently able to reproduce this issue with Robotium 4.3.1 on an Android 
Virtual Device running 4.2.2. This issue does NOT reproduce on devices with a 
lower version of the operating system. I'm currently using Android Studio 0.4.0 
with gradle version 1.9. I'd greatly appreciate any help or guidance in this 
issue.

Original comment by Psion...@gmail.com on 3 Feb 2014 at 10:49

GoogleCodeExporter commented 9 years ago
I've updated to 5.0.1 and I no longer have this issue. 

Original comment by Psion...@gmail.com on 4 Feb 2014 at 1:15