Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8096339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T21:25:26+00:00 2026-06-05T21:25:26+00:00

I am trying to verify the content of a large list using Robotium, and

  • 0

I am trying to verify the content of a large list using Robotium, and for some reason once the program gets to the bottom of the visible list, Robotium will start to scroll, and keep scrolling until it gets to the bottom of the list. Is there anything I can do to keep this from happening? Ideally, the program will verify the visible content, scroll enough to display a section of unverified content, then once that has been verified, scroll to the bottom, ultimately allowing the test app to verify all the content in the list.

Here is the code I’m using:

public void testCatalogLinkContent(){
        //VERIFY USER IS ON HOMEPAGE
        try {
            solo.sleep(3000);
            assertTrue(solo.searchText(" Apps")) ;
        } catch (Exception e) {
            // TODO Auto-generated catch block
            e.printStackTrace();

        }
        //CLICK ON CATALOG      
        try{
            solo.clickOnText(" Apps");
                }catch(Exception e){
                    e.printStackTrace();
                }
        //Search for Music in menu
        if(solo.searchText(RECOMMENDED)==false){
            Log.e(TAG, RECOMMENDED + " Not found!!!"); 

        }else{
            Log.i(TAG, RECOMMENDED + " Found"); 
        }

        //Search for UAT  in menu
        if(solo.searchText(UAT)==false){
            Log.e(TAG,  UAT + " Not found!!!"); 

        }else{
            Log.i(TAG, UAT  + " Found"); 
        }

        //Search for  NEW APPS in menu
        if(solo.searchText(NEW)==false){
            Log.e(TAG, NEW  + " Not found!!!"); 

        }else{
            Log.i(TAG, NEW + " Found"); 
        }

        //Search for TOP SELLERS in menu
        if(solo.searchText(TOPSELLER)==false){
            Log.e(TAG, TOPSELLER + " Not found!!!"); 

        }else{
            Log.i(TAG, TOPSELLER + " Found"); 
        }

        if(solo.searchText(TOPDOWNLOAD)==false){
            Log.e(TAG, TOPDOWNLOAD  + " Not found!!!"); 

        }else{
            Log.i(TAG, TOPDOWNLOAD  + " Found"); 
        }

        //Search for EA in menu
        if(solo.searchText(EA)==false){
            Log.e(TAG, EA  + " Not found!!!"); 

        }else{
            Log.i(TAG, EA  + " Found"); 
        }

        //Search for FEATURED in menu
        if(solo.searchText(FEATURED)==false){
            Log.e(TAG, FEATURED + " Not found!!!"); 

        }else{
            Log.i(TAG, FEATURED + " Found"); 
        }
        //Search for GAMES in menu
        if(solo.searchText(GAMES)==false){
            Log.e(TAG, GAMES + " Not found!!!"); 

        }else{
            Log.i(TAG, GAMES + " Found"); 
        }
        //Search for  APPS in menu
        if(solo.searchText(APPS)==false){
            Log.e(TAG, APPS + " Not found!!!"); 

        }else{
            Log.i(TAG, APPS  + " Found"); 
        }
        //Search for SOCIAL  in menu
        if(solo.searchText(SOCIAL)==false){
            Log.e(TAG, SOCIAL + " Not found!!!"); 

        }else{
            Log.i(TAG, SOCIAL  + " Found"); 
        }
        //Search for ENTERTAINMENT in menu
        if(solo.searchText(ENTERTAINMENT)==false){
            Log.e(TAG, ENTERTAINMENT + " Not found!!!"); 

        }else{
            Log.i(TAG,ENTERTAINMENT  + " Found"); 
        }
        //Search for THEMES  in menu
        if(solo.searchText(THEMES)==false){
            Log.e(TAG, THEMES  + " Not found!!!"); 

        }else{
            Log.i(TAG, THEMES  + " Found"); 
        }
        //Search for TOOLS  in menu
        if(solo.searchText(TOOLS)==false){
            Log.e(TAG, TOOLS + " Not found!!!"); 

        }else{
            Log.i(TAG, TOOLS  + " Found"); 
        }
        //Search for  NEWSin menu
        if(solo.searchText(NEWS)==false){
            Log.e(TAG, NEWS  + " Not found!!!"); 

        }else{
            Log.i(TAG, NEWS + " Found"); 
        }
        //Search for READING in menu
        if(solo.searchText(READING)==false){
            Log.e(TAG, READING + " Not found!!!"); 

        }else{
            Log.i(TAG, READING + " Found"); 
        }
        //Search for MONEY in menu
        if(solo.searchText(MONEY)==false){
            Log.e(TAG, MONEY + " Not found!!!"); 

        }else{
            Log.i(TAG, MONEY + " Found"); 
        }
        //Search for SHOPPING in menu
        if(solo.searchText(SHOPPING)==false){
            Log.e(TAG, SHOPPING  + " Not found!!!"); 

        }else{
            Log.i(TAG, SHOPPING  + " Found"); 
        }
        //Search for FITNESS in menu
        if(solo.searchText(FITNESS)==false){
            Log.e(TAG, FITNESS + " Not found!!!"); 

        }else{
            Log.i(TAG, FITNESS  + " Found"); 
        }
        //Search for TRAVEL  in menu
        if(solo.searchText(TRAVEL)==false){
            Log.e(TAG,TRAVEL + " Not found!!!"); 

        }else{
            Log.i(TAG, TRAVEL  + " Found"); 
        }
        //Search for BUSINESS  in menu
        if(solo.searchText(BUSINESS)==false){
            Log.e(TAG, BUSINESS + " Not found!!!"); 

        }else{
            Log.i(TAG, BUSINESS  + " Found"); 
        }
        //Search for SPANISH in menu
        if(solo.searchText(SPANISH)==false){
            Log.e(TAG, SPANISH + " Not found!!!"); 

        }else{
            Log.i(TAG, SPANISH + " Found"); 
        }
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T21:25:28+00:00Added an answer on June 5, 2026 at 9:25 pm

    So to fix this problem, here is what I had to do:

    public void testCatalogLinkContent(){
            //VERIFY USER IS ON HOMEPAGE
            try {
                solo.sleep(3000);
                assertTrue(solo.searchText("Apps")) ;
            } catch (Exception e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
    
            }
            //CLICK ON CATALOG      
            try{
                solo.clickOnText("Apps");
                    }catch(Exception e){
                        e.printStackTrace();
                    }
            //Search for Music in menu
            if(solo.searchText(RECOMMENDED)==false){
                Log.e(TAG, RECOMMENDED + " Not found!!!"); 
    
            }else{
                Log.i(TAG, RECOMMENDED + " Found"); 
            }
    
            //Search for UAT  in menu
            if(solo.searchText(UAT)==false){
                Log.e(TAG,  UAT + " Not found!!!"); 
    
            }else{
                Log.i(TAG, UAT  + " Found"); 
            }
    
            //Search for  NEW APPS in menu
            if(solo.searchText(NEW)==false){
                Log.e(TAG, NEW  + " Not found!!!"); 
    
            }else{
                Log.i(TAG, NEW + " Found"); 
            }
    
            //Search for TOP SELLERS in menu
            if(solo.searchText(TOPSELLER)==false){
                Log.e(TAG, TOPSELLER + " Not found!!!"); 
    
            }else{
                Log.i(TAG, TOPSELLER + " Found"); 
            }
            //Search for top downloaded
            if(solo.searchText(TOPDOWNLOAD)==false){
                Log.e(TAG, TOPDOWNLOAD  + " Not found!!!"); 
    
            }else{
                Log.i(TAG, TOPDOWNLOAD  + " Found"); 
            }
    
            //Search for EA in menu
            if(solo.searchText(EA)==false){
                Log.e(TAG, EA  + " Not found!!!"); 
    
            }else{
                Log.i(TAG, EA  + " Found"); 
            }
            solo.scrollUp();
            //Search for FEATURED in menu
            if(solo.searchText(FEATURED)==false){
                Log.e(TAG, FEATURED + " Not found!!!"); 
    
            }else{
                Log.i(TAG, FEATURED + " Found"); 
            }
            solo.scrollUp();
            //Search for GAMES in menu
            if(solo.searchText(GAMES)==false){
                Log.e(TAG, GAMES + " Not found!!!"); 
    
            }else{
                Log.i(TAG, GAMES + " Found"); 
            }
            solo.scrollUp();
            //Search for APPS in menu
            if(solo.searchText(APPS)==false){
                Log.e(TAG, APPS + " Not found!!!"); 
    
            }else{
                Log.i(TAG, APPS  + " Found"); 
            }
            solo.scrollUp();
            //Search for SOCIAL  in menu
            if(solo.searchText(SOCIAL)==false){
                Log.e(TAG, SOCIAL + " Not found!!!"); 
    
            }else{
                Log.i(TAG, SOCIAL  + " Found"); 
            }
            solo.scrollUp();
            //Search for ENTERTAINMENT in menu
            if(solo.searchText(ENTERTAINMENT)==false){
                Log.e(TAG, ENTERTAINMENT + " Not found!!!"); 
    
            }else{
                Log.i(TAG,ENTERTAINMENT  + " Found"); 
            }
            solo.scrollUp();
            //Search for MUSIC  in menu
                    if(solo.searchText(MUSIC)==false){
                        Log.e(TAG, MUSIC  + " Not found!!!"); 
    
                    }else{
                        Log.i(TAG, MUSIC  + " Found"); 
                    }
                    solo.scrollUp();
            //Search for THEMES  in menu
            if(solo.searchText(THEMES)==false){
                Log.e(TAG, THEMES  + " Not found!!!"); 
    
            }else{
                Log.i(TAG, THEMES  + " Found"); 
            }
            solo.scrollUp();
            //Search for TOOLS  in menu
            if(solo.searchText(TOOLS)==false){
                Log.e(TAG, TOOLS + " Not found!!!"); 
    
            }else{
                Log.i(TAG, TOOLS  + " Found"); 
            }
            solo.scrollUp();
            //Search for  NEWSin menu
            if(solo.searchText(NEWS)==false){
                Log.e(TAG, NEWS  + " Not found!!!"); 
    
            }else{
                Log.i(TAG, NEWS + " Found"); 
            }
            solo.scrollUp();
            //Search for SPORTS  in menu
                    if(solo.searchText(SPORTS)==false){
                        Log.e(TAG, SPORTS  + " Not found!!!"); 
    
                    }else{
                        Log.i(TAG, SPORTS  + " Found"); 
                    }
                    solo.scrollUp();
            //Search for READING in menu
            if(solo.searchText(READING)==false){
                Log.e(TAG, READING + " Not found!!!"); 
    
            }else{
                Log.i(TAG, READING + " Found"); 
            }
            solo.scrollUp();
            //Search for MONEY in menu
            if(solo.searchText(MONEY)==false){
                Log.e(TAG, MONEY + " Not found!!!"); 
    
            }else{
                Log.i(TAG, MONEY + " Found"); 
            }
            //Search for SHOPPING in menu
            if(solo.searchText(SHOPPING)==false){
                Log.e(TAG, SHOPPING  + " Not found!!!"); 
    
            }else{
                Log.i(TAG, SHOPPING  + " Found"); 
            }
            //Search for FITNESS in menu
            if(solo.searchText(FITNESS)==false){
                Log.e(TAG, FITNESS + " Not found!!!"); 
    
            }else{
                Log.i(TAG, FITNESS  + " Found"); 
            }
            //Search for TRAVEL  in menu
            if(solo.searchText(TRAVEL)==false){
                Log.e(TAG,TRAVEL + " Not found!!!"); 
    
            }else{
                Log.i(TAG, TRAVEL  + " Found"); 
            }
            //Search for BUSINESS  in menu
            if(solo.searchText(BUSINESS)==false){
                Log.e(TAG, BUSINESS + " Not found!!!"); 
    
            }else{
                Log.i(TAG, BUSINESS  + " Found"); 
            }
            //Search for SPANISH in menu
            if(solo.searchText(SPANISH)==false){
                Log.e(TAG, SPANISH + " Not found!!!"); 
    
            }else{
                Log.i(TAG, SPANISH + " Found"); 
            }
        }
    

    Before (and after) each search, I inserted solo.scrollUp();

    This isn’t the prettiest way, or most efficient way to accomplish this, but it works now.

    Thank you all for your help.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to load some content into a page using Ajax. The html
I am trying to verify whether an object is null or not, using this
Using the elementtree package in nodejs, I'm trying to verify the existence of a
I'm trying to verify a signed message using a x509 certificate holding a dsa
While trying to verify to myself, that C# Equals for IEnumerables is a reference
I'm trying to verify I understand Core Data relationships and/or possibly how to handle
I'm trying to verify on the fly generated bytecode! I already had several attempts,
I'm trying to create a UnitTest to verify that an object has been deleted.
I'm trying to get it to verify that it has the same item in
I'm trying to use mock to verify that an index property has been set.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.