xiaofans / robotium

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

about clickOnImageButton #379

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,
I think through the text to get ImageView, but now it~s through the index to 
get ImageVeiw
like :

void clickOnImageButton(String string) .

I hope you can help me! :)

Original issue reported on code.google.com by wise...@gmail.com on 14 Jan 2013 at 9:43

GoogleCodeExporter commented 9 years ago
I do not understand. What is it that you want to do. You can use 
clickOnButton(String lable) if you want to click the text. 

Original comment by renasr...@gmail.com on 14 Jan 2013 at 2:27

GoogleCodeExporter commented 9 years ago

My application contains 16 imageview ,I want to click the imageview !  
but I can't get it with clickOnImage(index).

Original comment by wise...@gmail.com on 15 Jan 2013 at 10:26

GoogleCodeExporter commented 9 years ago
What happens if you do: clickOnImageButton(0); ?

Original comment by renasr...@gmail.com on 15 Jan 2013 at 10:43

GoogleCodeExporter commented 9 years ago
I use the clickOnImageButton(0), but the imageview is too much,I want to find 
one of the content is “send”. I don't know clickImageButton(index) , index 
is 4 or 8 ?

Original comment by wise...@gmail.com on 15 Jan 2013 at 10:52

GoogleCodeExporter commented 9 years ago

Original comment by wise...@gmail.com on 15 Jan 2013 at 10:52

Attachments:

GoogleCodeExporter commented 9 years ago
The only other option you have is to use the resource id. E.g. ImageButton
imageButton = solo.getView(R.id); solo.clickOnView(imageButton);

/Renas

Original comment by renasr...@gmail.com on 15 Jan 2013 at 10:54

GoogleCodeExporter commented 9 years ago
Thranks ,the app is a apk, I have not the Source Code ! 
my english is bad :).
thrank you answered my question!

Original comment by wise...@gmail.com on 15 Jan 2013 at 11:00