austgl / robotium

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

Cannot get the text in the page if not scroll up first. #199

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
One page in my longer than the phone screen, so it need scroll the screen.

What steps will reproduce the problem?
1.Click one text on the page, and it open another small view.
2.Go back.
3.Click another text on the page, and the text can be seen without scroll.

What is the expected output? What do you see instead?
In step 2, the main page is scroll up,after the top view is showed.
In steep 3, solo.clickOnText("****") can not find the text, but the text is 
showed on current view.
If I scroll up the screen first, in step 3, it will work well. I do not know 
the reason.

Please help and give some suggest.

Original issue reported on code.google.com by heli2003...@gmail.com on 2 Jan 2012 at 1:12

GoogleCodeExporter commented 9 years ago
The view needs to be shown for Robotium to be able to interact with it. Please 
use this tracker for defects only.

Original comment by renasr...@gmail.com on 2 Jan 2012 at 9:32

GoogleCodeExporter commented 9 years ago
Thank you very much, but I still do not understand.
In fact, the view I need click is already showed on the current page, but if I 
directly use clickOnText("****"), it will show an error: cannot find ***.
If I scroll up the screen,then clickOntext("****") that will be ok.
If the view is on the bottom of the page, I need scroll up then scroll down the 
page.

Original comment by heli2003...@gmail.com on 10 Jan 2012 at 1:57