stephenwang1011 / robotium

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

Robotium can not find the hidden radiobutton, how to scroll the HorizontalScrollView? #210

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.There are one HorizontalScrollView and one ViewAnimator on my 
screen.ViewAnimator is below at HorizontalScrollView. There is a RadioGroup In 
HorizontalScrollView, this RadioGroup includes eight RadioButtons and only five 
RadioButtons can display on my screen according to the width of my screen.
2.When testing, I want to click the six RadioButton by 
solo.clickOnRadioButton(6);

What is the expected output? What do you see instead?
The expected output----open a new activity.But in fact I did not see anything 
and can not click my RadioButton.

What version of the product are you using? On what operating system?
Robotimu3.1
Android2.1  2.3

Please provide any additional information below.
I have researched this problem and know robotium can not find the invisible 
items. I should scroll the RadioGroup to make sure the six RadioButton can be 
displayed on my screen.
So I have tried some methods.
1.By solo.scrollToSide();, I scrolled the ViewAnimator but the 
HorizontalScrollView did not scroll.

2.By drag();nothing effects,maybe I did not use it properly.

Does anyone can help me???

Thanks.

Original issue reported on code.google.com by Jing....@fmr.com on 18 Jan 2012 at 4:18

GoogleCodeExporter commented 9 years ago
It is not the sixth radiobutton is the seventh.
sorry

Original comment by Jing....@fmr.com on 18 Jan 2012 at 4:33

GoogleCodeExporter commented 9 years ago
Thanks for reporting this. As of now we only have scrollToSide and drag(). If 
there is time and/or more people ask for this, then this issue will be reopened 
again. 

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

GoogleCodeExporter commented 9 years ago
So,how to slove my problem? MY,GOD! I want to test our android application....

Original comment by Jing....@fmr.com on 19 Jan 2012 at 7:19