austgl / robotium

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

is it possible to search a string with more than 2 pages . #19

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Have some user info string with more than 2 pages in your application .

sample code :
boolean 
actual=solo.searchText(getActivity().getResources().getString(R.string.id));

What is the expected output? What do you see instead?
I am getting the result actual as false. is it right way to search a string.is 
there any other ways.

What version of the product are you using? On what operating system?
Robotium1.7

Please provide any additional information below.

Original issue reported on code.google.com by jegan.k...@gmail.com on 13 Oct 2010 at 3:55

GoogleCodeExporter commented 9 years ago
sample code :
boolean 
actual=solo.searchText(getActivity().getResources().getString(R.string.id),1,sol
o.scrollUp());

Original comment by jegan.k...@gmail.com on 13 Oct 2010 at 3:57

GoogleCodeExporter commented 9 years ago
The problem is that if all the text is not shown on the screen then that means 
it has not been initiated and therefore they do not exist and Robotium can not 
verify them. You could experiment a little bit with regular expressions. So 
that even a part of the text will result in getting true back. And then you 
could scroll down and continue with the rest of the text.

Original comment by renasr...@gmail.com on 13 Oct 2010 at 10:22