austgl / robotium

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

There are many layouts in an activity. when I use clickonButton(2) (2 is in the second layout),it doesn“t work. #53

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.There are many layouts in an activity. 
2. when I use clickonButton(2) (2 is in the second layout),it doesn't work.

What is the expected output? What do you see instead?
I hope it can change to the other activity when I use clickonButton(2).But when 
I use clickonButton(2),it can find the Button,But it don't click on it.

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

Please provide any additional information below.

Original issue reported on code.google.com by chenmeng...@gmail.com on 11 Jan 2011 at 8:11

GoogleCodeExporter commented 9 years ago
Is the button fully shown on the screen when you try to click on it?

Original comment by renasr...@gmail.com on 11 Jan 2011 at 8:45

GoogleCodeExporter commented 9 years ago
Also have you tried to add the following found in: Why do text and button 
clicks get wrong?

http://code.google.com/p/robotium/wiki/QuestionsAndAnswers

Original comment by renasr...@gmail.com on 11 Jan 2011 at 8:57

GoogleCodeExporter commented 9 years ago
Try the step above and it will work.

Original comment by renasr...@gmail.com on 11 Jan 2011 at 10:28

GoogleCodeExporter commented 9 years ago
Thank you for your help.
I have add the setting in my manifest.xml ,but it doesn't work.
when i use clickonButton(2),it can find the Button,But it don't click on it.
But if i use clickonButton(0)  (0 is in the first layout),it can work and it 
can into the next activity.

Original comment by chenmeng...@gmail.com on 12 Jan 2011 at 1:02

GoogleCodeExporter commented 9 years ago
Is it possible for you to send me your apk? Please send it to 
renasreda@gmail.com.

Original comment by renasr...@gmail.com on 12 Jan 2011 at 5:17

GoogleCodeExporter commented 9 years ago
Thanks for you help~
I have sended an email to you~ Wait for you answer.

Original comment by chenmeng...@gmail.com on 12 Jan 2011 at 8:02