sangmingming / robotium

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

Scrolling a TextView within ScrollView in a Dialog does not work #119

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Have a View like in the sample.xml attached that will be used within a 
dialog.
2. Fill the containing TextView dialog_message with enough text so that it can 
be scrolled
3. Open the dialog
4. Call Solo.scrollDown
5. Call Solo.clickOnText("Visible text within the TextView before and after 
scrolling")

What is the expected output? What do you see instead?
expected:
4. The TextView gets scrolled
5. The text can be clicked
instead:
4. The TextView can not be scrolled
5. The text can not be clicked

What version of the product are you using? On what operating system?
2.2, Android 2.2 HTC Desire

Please provide any additional information below.

If in step 4 one 
calls Solo.getCurrentViews 
and then 
filters for the id of the dialog_message
and then
calls dialogMessageTextView.getText().toString();

the text that should be clicked on can be found.

Original issue reported on code.google.com by JoaRe...@gmail.com on 3 Jun 2011 at 2:00

Attachments:

GoogleCodeExporter commented 9 years ago
I'm sorry, the method

Solo.getViews has to be called in Step 4 

not Solo.getCurrentViews 

Original comment by JoaRe...@gmail.com on 3 Jun 2011 at 2:07

GoogleCodeExporter commented 9 years ago
Please try this scenario with Robotium 2.3. 

Original comment by renasr...@gmail.com on 5 Jun 2011 at 3:06

GoogleCodeExporter commented 9 years ago
Solo.scrollDown() and Solo.clickOnText() 
do not work with Robotium 2.3 either.

ScrollDownList(index) 
does not work either

Original comment by JoaRe...@gmail.com on 6 Jun 2011 at 9:48

GoogleCodeExporter commented 9 years ago
Would it be possible for you to send me your application or another application 
that reproduces this problem?

Original comment by renasr...@gmail.com on 6 Jun 2011 at 9:59

GoogleCodeExporter commented 9 years ago
Unfortunately I am not able to reproduce this. Will open this issue if you can 
provide me with an application that reproduces this error. 

Original comment by renasr...@gmail.com on 7 Jun 2011 at 1:08

GoogleCodeExporter commented 9 years ago
could reproduce
solo.clickOnText(str);
not working on an AVD Android 2.2

With AVD Android 2.3.3 same code works well!

Original comment by gerrit.l...@gmail.com on 19 Jul 2011 at 1:52