stephenwang1011 / robotium

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

Problems with clicking on element in GridView #259

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Open a Activity with GridView which contains more than one elements(for 
example 4 elements), each elements contains a ImageView and a TextView
2.i use clickOnText("Back up to web server") method click on the first element 
of the gridview

What is the expected output? What do you see instead?
it can not working 
What version of the product are you using? On what operating system?
robotium-solo-3.1   Android 4.0
Please provide any additional information below.
it is working when i use clickOnText method click on another three elements, 
also searchText("Back up to web server")  method will return false

Original issue reported on code.google.com by liu_she...@163.com on 14 May 2012 at 10:40

GoogleCodeExporter commented 9 years ago
What is the expected output? What do you see instead?
it should go to next activity , but it can not working 

Original comment by liu_she...@163.com on 14 May 2012 at 10:43

GoogleCodeExporter commented 9 years ago
Have you done this?

/*
Please see: "Why do text and button clicks get wrong?"

http://code.google.com/p/robotium/wiki/QuestionsAndAnswers
*/

Also, what happens if you try:

clickOnText("Back");

Original comment by renas.r...@jayway.com on 14 May 2012 at 12:13

GoogleCodeExporter commented 9 years ago
it can not working use clickOnText("Back");
ArrayList<TextView> textViews = 
solo.getCurrentTextViews(solo.getCurrentGridViews().get(0));
    for (int i = 0; i < textViews.size(); i++) {
            Log.e("tag", "sizetv" + i + textViews.get(i).getText());
        }
up code can output the other three text ,but can not ouptut "Back up to web 
server" .
addition: the grid view adapter is self defined  which extended from BaseAdapter

Original comment by liu_she...@163.com on 15 May 2012 at 2:16

GoogleCodeExporter commented 9 years ago
Would it be possible for you to send me a sample application that exhibits this 
problem?

Original comment by renasr...@gmail.com on 15 May 2012 at 5:22

GoogleCodeExporter commented 9 years ago
sorry ,beacuse of the secret of company , i can not send my code . finally i 
use clickOnScreen instead. thank you 4 your answer 

Original comment by liu_she...@163.com on 28 May 2012 at 11:32

GoogleCodeExporter commented 9 years ago

Original comment by renasr...@gmail.com on 29 May 2012 at 8:02