sangmingming / robotium

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

Not able to search/click on any item after moving to other tab. #101

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Launch the favorites tab.
2.Click on the "Contact4" and check the contact details and go back.
3.Now launch the Contacts tab.
4)Now click On "Contact4"

What is the expected output? What do you see instead?
Should be able to click on contact.

Actual:
Not able to do any operations on the activity except the hardware key 
simulations.
1)Click, search operations are not happening.
2)only Hardware keys simulations are happening.

What version of the product are you using? On what operating system?
Android2.3 and Robotium 2.2

Please provide any additional information below.

Original issue reported on code.google.com by anandpai...@gmail.com on 15 Apr 2011 at 6:07

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for this. Do you get any error when using the click methods? If you do 
for(TextView textView : solo.getCurrentTextViews()) Log.d("Robotium", "text: " 
+  textView.getText()); Do you see any of the text views that are displayed in 
that tab?

Original comment by renasr...@gmail.com on 18 Apr 2011 at 5:17

GoogleCodeExporter commented 9 years ago
I do not get any error but robotium cannot proceed forward. I queried like this 
and i got the listView refrence to scroll 
for(ListView lView : solo.getCurrentlistViews)

It has given me the correct lisview and quried the count by using 
lView.getCount() - This also has given me the correct count.

Only the hardware key functionalities is working and the robotium searchText 
and clickOntext is not working.I am able to scroll but using 
this.sendkeys(KeyEvent.KEYCODE_DPAD_DOWN) but if the textview is available also 
the not able to give proper result.

Original comment by anandpai...@gmail.com on 18 Apr 2011 at 11:02

GoogleCodeExporter commented 9 years ago
Would it be possible for you to send me this application?

Original comment by renasr...@gmail.com on 18 Apr 2011 at 12:25

GoogleCodeExporter commented 9 years ago
No i cant send as it is against policy you can verify this on the base google 
contacts application.

Original comment by anandpai...@gmail.com on 18 Apr 2011 at 1:22

GoogleCodeExporter commented 9 years ago
So the problem is that it does not scroll? searchText() will still find 
something if it shown in the first screen?

Original comment by renasr...@gmail.com on 20 Apr 2011 at 10:27

GoogleCodeExporter commented 9 years ago
yes if the item is visible it returns true and does not but clickOntext does 
not able to click on that text item if it is visible and also can't scroll.

Original comment by anandpai...@gmail.com on 20 Apr 2011 at 3:47

GoogleCodeExporter commented 9 years ago
The problem is that I am not able to write test cases for the pre-installed 
Contacts application. It is one of those pre-installed that can not be resigned 
and then replaced. So I am not able to reproduce this issue, consequently I can 
not figure out what the problem might be...

Original comment by renasr...@gmail.com on 21 Apr 2011 at 7:36

GoogleCodeExporter commented 9 years ago

Original comment by renasr...@gmail.com on 21 Apr 2011 at 5:45