TrueBlueDrive / robotium

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

Click in list, wrong items are clicked #322

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Get ApiDemos App
2. Write simple test with clicks in list
3. Use solo.clickInList(4);
4. Second item is clicked
5. Use solo.clickInList(8);
6. Fifth item is clicked

What is the expected output? What do you see instead?
Should click on list items with right indexes

What version of the product are you using? On what operating system?
It doesn't matter

Please provide any additional information below.
I went deeper in implementation and there is finally:

int[] xy = new int[2];
view.getLocationOnScreen(xy); // this method returns wrong coordinates for this 
list

It seems to be android issue, but maybe there is some workaround to get real 
position of elements.

Original issue reported on code.google.com by Michal.S...@bitbar.com on 6 Sep 2012 at 3:26

Attachments:

GoogleCodeExporter commented 9 years ago
This is because of supports-screen anyDensity missing from AndroidManifest.xml 
and should be closed. Mentioned in 
http://code.google.com/p/robotium/wiki/QuestionsAndAnswers

Original comment by henri.ki...@bitbar.com on 6 Sep 2012 at 4:05

GoogleCodeExporter commented 9 years ago

Original comment by renasr...@gmail.com on 6 Sep 2012 at 7:48