austgl / robotium

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

How to test existence of a Drawabale Image on a Button #146

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a Button with a Drawable & a text on it
2. There is no method or way to test the existence of the Drawable Image 
3.

What is the expected output? What do you see instead?
Unable to test whether a Button(it is not an ImageButton), contains an 
image/drawable object associated with it.

I'm guessing that there should be something like solo.searchDrawable(), or 
something like that?

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

Please provide any additional information below.
e.g. of Button view
<Button android:id="@+id/btn"
                        style="@style/style_button"
                        android:text="@string/btn_text" 
                        android:drawableLeft="@drawable/btn_left"
                        android:onClick="onButtonClick"/>

Original issue reported on code.google.com by daskun...@gmail.com on 30 Aug 2011 at 5:12

GoogleCodeExporter commented 9 years ago
No functionality like that is planned. Use getButton() and then see if you can 
ask the button returned if it has an image/drawable object associated with it.

Original comment by renasr...@gmail.com on 31 Aug 2011 at 5:56