Forum Discussion

kevinkleint's avatar
kevinkleint
Contributor
11 years ago

Can someone help me work with a Listbox control?

Hi,  I'm having trouble working with a Listbox control (see Image 2).

 

First, many of the properties are undetectable to TestComplete.  (see Image 1)

 

Using an external spreadsheet, I need to be able to select specific cells (values determined by spreadsheet).  I don't have the programming expertise to come up with well-crafted code.  Does anyone have a "quick 'n dirty" resolution to this?

 

Any input would be most helpful.

 

Thanks,

 

Kevin Kleint

8 Replies

  • Hi Kevinkleint,

     

    As you are testing a Visual C++ Application, first of all, you need to check that the application was built along with debug information that TestComplete requires to get access to some properties and methods. Refer to the Preparing Visual C++ Applications for Testing ( http://smartbear.com/viewarticle/69672/ ) article to learn how to do this.

    • kevinkleint's avatar
      kevinkleint
      Contributor

      It looks like I can detect down to the individual cells (Image 2) in the Listbox (Image 1).  I guess what I'm asking is, from the attached screenshots, can you tell me if I have access to all the properties that I need in order to work with the control?  And if so, can you tell me how to use Test Complete to manuever, detect and work within the control? 

       

      I'm sorry, I'm quite the newb when it comes to working with these Listboxes.

       

      Thanks,

       

      Kevin Kleint

      • TanyaYatskovska's avatar
        TanyaYatskovska
        Icon for Alumni rankAlumni

        Hi Kevinkleint,

         

        As a rule, it's possible to work with a listbox control in a way listed in the Working With List Box Controls ( http://smartbear.com/viewarticle/75560/ ) article. However, in your case, as you use the Text Recognition feature, you can see all listbox items in the object tree under Windows(“ListBox”). Thus, you can access the target item by using its full path.